diff --git a/.gitea/workflows/dev.yaml b/.gitea/workflows/build.yaml similarity index 81% rename from .gitea/workflows/dev.yaml rename to .gitea/workflows/build.yaml index 4abc907..e3cd483 100644 --- a/.gitea/workflows/dev.yaml +++ b/.gitea/workflows/build.yaml @@ -1,4 +1,4 @@ -name: Run tests +name: Build on: push: @@ -6,28 +6,9 @@ permissions: contents: read jobs: - test: - strategy: - matrix: - go: [stable] - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v6 - - name: Setup Go - uses: actions/setup-go@v6 - with: - go-version: ${{ matrix.go }} - #- name: golangci-lint - # uses: golangci/golangci-lint-action@v9 - # with: - # go-version: ${{ matrix.go }} - # version: v2.6 - build: strategy: matrix: - go: [stable] include: - goos: linux goarch: amd64 @@ -44,7 +25,7 @@ jobs: - name: Setup Go uses: actions/setup-go@v6 with: - go-version: ${{ matrix.go }} + go-version: stable - name: Set target variables run: | echo "GOOS=${{ matrix.goos }}" >> $GITHUB_ENV diff --git a/.gitea/workflows/test.yaml b/.gitea/workflows/test.yaml new file mode 100644 index 0000000..b8ad33e --- /dev/null +++ b/.gitea/workflows/test.yaml @@ -0,0 +1,22 @@ +name: Run tests +on: + push: + +permissions: + contents: read + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v6 + - name: Setup Go + uses: actions/setup-go@v6 + with: + go-version: ${{ matrix.go }} + #- name: golangci-lint + # uses: golangci/golangci-lint-action@v9 + # with: + # go-version: ${{ matrix.go }} + # version: v2.6