diff --git a/.github/workflows/test-and-tag.yml b/.github/workflows/test-and-tag.yml deleted file mode 100644 index c3c0527..0000000 --- a/.github/workflows/test-and-tag.yml +++ /dev/null @@ -1,64 +0,0 @@ -name: test & tag - -on: - push: - branches: - - "**" - tags-ignore: - - "v*" - -jobs: - test: - runs-on: ubuntu-latest - steps: - - name: Check out repository - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - - - name: Set up go - uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 - with: - # renovate: go-version - go-version: 1.23.6 - - - name: Run go tests - shell: bash - run: | - make frontend - go test ./... -race -covermode=atomic - - # This builds the binary and starts it. If it does not exit within 3 seconds, consider it - # successful - - name: Verify binary works - shell: bash - run: | - make build - timeout 3 ./standalone || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi - - tag: - runs-on: ubuntu-latest - needs: test - if: ${{ github.ref == 'refs/heads/main' }} - steps: - - name: Checkout - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 - with: - fetch-depth: 0 - token: ${{ secrets.EZ_BOT_TOKEN }} - - - name: Install svu - run: | - # renovate: datasource=github-releases depName=caarlos0/svu - export SVU_VERSION="v2.2.0" - curl -Lo ./svu.tar.gz "https://github.com/caarlos0/svu/releases/download/${SVU_VERSION}/svu_${SVU_VERSION#v}_linux_amd64.tar.gz" - tar -C "$HOME" -xzf svu.tar.gz - rm svu.tar.gz - - - name: Tag new version - run: | - if [ $(git tag -l "$(~/svu next)") ]; then - echo "Tag already exists, no release necessary" - else - echo "Tagging new version" - git tag "$(~/svu next)" - git push --tags - fi diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..b1b6a99 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,35 @@ +name: test + +on: + push: + branches: + - "**" + tags-ignore: + - "v*" + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 + + - name: Set up go + uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0 + with: + # renovate: go-version + go-version: 1.23.6 + + - name: Run go tests + shell: bash + run: | + make frontend + go test ./... -race -covermode=atomic + + # This builds the binary and starts it. If it does not exit within 3 seconds, consider it + # successful + - name: Verify binary works + shell: bash + run: | + make build + timeout 3 ./standalone || code=$?; if [[ $code -ne 124 && $code -ne 0 ]]; then exit $code; fi