Skip to content

Merge pull request #7 from denisandreenko/dependabot/github_actions/a… #43

Merge pull request #7 from denisandreenko/dependabot/github_actions/a…

Merge pull request #7 from denisandreenko/dependabot/github_actions/a… #43

Workflow file for this run

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 }}."