Bump actions/setup-go from 4 to 5 #42
Workflow file for this run
This file contains 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: Continuous Integration | |
on: push | |
jobs: | |
run_code_checks: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
go-version: [ '1.19', '1.20.x' ] | |
steps: | |
- run: echo "🎉 The job was automatically triggered by a ${{ github.event_name }} event." | |
- run: echo "🐧 This job is now running on a ${{ runner.os }} server hosted by GitHub!" | |
- run: echo "🔎 The name of branch is ${{ github.ref }} and repository is ${{ github.repository }}." | |
- name: Checkout Repo Code | |
uses: actions/checkout@v4 | |
- run: echo "💡 The ${{ github.repository }} repository has been cloned to the runner." | |
- run: echo "🖥️ The workflow is now ready to test your code on the runner." | |
- name: List files in the repository | |
run: | | |
ls ${{ github.workspace }} | |
- name: Set up Go ${{ matrix.go-version }} | |
uses: actions/setup-go@v5 | |
with: | |
go-version: ${{ matrix.go-version }} | |
cache: true | |
- name: Display Go version | |
run: go version | |
- name: Run linting | |
run: | | |
go fmt ./... | |
go vet ./... | |
- name: Build | |
run: go build ./cmd/fire | |
- name: Test | |
run: go test -coverprofile=coverage.txt -covermode=atomic ./... | |
- name: Upload coverage reports to Codecov | |
uses: codecov/codecov-action@v3 | |
- run: echo "🍏 This job's status is ${{ job.status }}." |