chore(deps): update actions/setup-go action to v7 (#50) #89
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ci-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint-and-test: | |
| name: Lint & Test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Lint (linux) | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.12.2 | |
| - name: Lint (darwin) | |
| uses: golangci/golangci-lint-action@v9 | |
| with: | |
| version: v2.12.2 | |
| env: | |
| GOOS: darwin | |
| - name: Unit tests | |
| run: go test -race ./internal/... | |
| e2e: | |
| name: E2E Tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version-file: go.mod | |
| cache: true | |
| - name: Build devbox | |
| run: go build -o devbox ./cmd/devbox/ | |
| - name: Add devbox to PATH | |
| run: echo "${{ github.workspace }}" >> $GITHUB_PATH | |
| - name: Configure git | |
| run: | | |
| git config --global user.email "ci@test.test" | |
| git config --global user.name "CI" | |
| git config --global init.defaultBranch master | |
| - name: Run e2e tests | |
| run: go test -v ./tests/e2e/ -timeout 10m |