Skip to content

Update softprops/action-gh-release action to v2 #455

Update softprops/action-gh-release action to v2

Update softprops/action-gh-release action to v2 #455

Workflow file for this run

name: ci
on:
push:
branches: [master]
pull_request:
branches: [master]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup golang
uses: actions/setup-go@v5
with:
go-version: 1.19
- name: Install dependencies
run: go mod download
- name: Run check
run: go vet ./...
- name: Run build
run: go build cmd/ssh-provision/ssh-provision.go
- name: Run test
run: go test -race -coverprofile=coverage.out -covermode=atomic ./...
- name: Upload coverage
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.out
fail_ci_if_error: true