Skip to content

bump actions/setup-go v4 (#115) #291

bump actions/setup-go v4 (#115)

bump actions/setup-go v4 (#115) #291

Workflow file for this run

name: CI
on:
pull_request:
push:
branches: [main]
jobs:
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
- name: Build
run: go build -v ./...
- name: Checkout dummy repo
uses: actions/checkout@v4
with:
repository: seachicken/can
path: ci-test
fetch-depth: 0
- name: Test
working-directory: ./ci-test
run: |
for branch in $(git branch --all | grep '^\s*remotes' | egrep --invert-match 'main$')
do
git branch --track "${branch##*/}" "$branch"
done
echo ${{ secrets.GITHUB_TOKEN }} | gh auth login --with-token
go test $(go list ../... | grep -v /conn) -v -race -coverprofile=coverage.out -covermode=atomic
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
directory: ./ci-test/