Add option to initialize git repo with a particular branch #24
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: tests | |
on: | |
pull_request: | |
push: | |
branches: | |
- master | |
permissions: | |
contents: read # for actions/checkout to fetch code | |
jobs: | |
linux-amd64: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17.x | |
- name: Restore Go cache | |
uses: actions/cache@v1 | |
with: | |
path: /home/runner/work/_temp/_github_home/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Run tests | |
run: make test | |
darwin-amd64: | |
runs-on: macos-10.15 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Setup Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.17.x | |
- name: Restore Go cache | |
uses: actions/cache@v1 | |
with: | |
path: /home/runner/work/_temp/_github_home/go/pkg/mod | |
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | |
restore-keys: | | |
${{ runner.os }}-go- | |
- name: Run tests | |
run: make test |