From 90b406b0667206b30582518fd329a99221cdcc93 Mon Sep 17 00:00:00 2001 From: Christian Zangl Date: Fri, 16 Aug 2024 23:13:44 +0200 Subject: [PATCH] workflow --- .github/FUNDING.yml | 1 + .github/workflows/ci.yml | 31 ++++++++++++++++++++++++++++++ .github/workflows/release.yml | 36 +++++++++++++++++++++++++++++++++++ 3 files changed, 68 insertions(+) create mode 100644 .github/FUNDING.yml create mode 100644 .github/workflows/ci.yml create mode 100644 .github/workflows/release.yml diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml new file mode 100644 index 0000000..dfbefec --- /dev/null +++ b/.github/FUNDING.yml @@ -0,0 +1 @@ +github: laktak diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..c7a59e0 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,31 @@ +name: ci + +on: + push: + branches: [] + pull_request: + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: "1.22" + + - name: chkfmt + run: scripts/chkfmt + + - name: prep-test + run: scripts/run_test_prep + + - name: tests + run: | + scripts/tests + scripts/run_tests + + - name: xbuild + run: scripts/xbuild + diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml new file mode 100644 index 0000000..6f52aee --- /dev/null +++ b/.github/workflows/release.yml @@ -0,0 +1,36 @@ +name: release + +on: + push: + tags: ["v*"] + +jobs: + + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-go@v5 + with: + go-version: "1.22" + + - name: chkfmt + run: scripts/chkfmt + + - name: prep-test + run: scripts/run_test_prep + + - name: tests + run: | + scripts/tests + scripts/run_tests + + - name: xbuild + run: version=${GITHUB_REF#$"refs/tags/v"} scripts/xbuild + + - name: release + uses: softprops/action-gh-release@v2 + with: + draft: true + files: dist/* +