diff --git a/.github/workflows/backend.yml b/.github/workflows/backend.yml index 65df80a..fc56ee4 100644 --- a/.github/workflows/backend.yml +++ b/.github/workflows/backend.yml @@ -39,6 +39,7 @@ jobs: startsWith(github.head_ref, 'feature/') || startsWith(github.head_ref, 'fix/') || startsWith(github.head_ref, 'refactor/') + || startsWith(github.head_ref, 'doc/') runs-on: ubuntu-latest strategy: fail-fast: false @@ -46,14 +47,18 @@ jobs: go-version: [ '1.23.x' ] steps: - uses: actions/checkout@v4 + if: ${{ !startsWith(github.head_ref, 'doc/') }} - name: Setup Go ${{ matrix.go-version }} + if: ${{ !startsWith(github.head_ref, 'doc/') }} uses: actions/setup-go@v5 with: go-version: ${{ matrix.go-version }} - name: Get Dependencies + if: ${{ !startsWith(github.head_ref, 'doc/') }} working-directory: ./backend run: | go get . - name: Run tests + if: ${{ !startsWith(github.head_ref, 'doc/') }} working-directory: ./backend run: go test ./...