2019-12-18 22:08:31 +00:00
|
|
|
name: Pull Request CI Check
|
2020-05-27 23:34:12 +00:00
|
|
|
on: [pull_request]
|
2019-12-18 22:08:31 +00:00
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Run CI
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2021-07-30 06:56:08 +00:00
|
|
|
- name: Set up Go
|
|
|
|
uses: actions/setup-go@v2
|
|
|
|
with:
|
2021-12-06 12:10:20 +00:00
|
|
|
go-version: 1.17
|
2021-07-30 06:56:08 +00:00
|
|
|
id: go
|
2021-02-26 00:51:39 +00:00
|
|
|
- name: Check out the code
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Fetch cached go modules
|
|
|
|
uses: actions/cache@v2
|
|
|
|
with:
|
|
|
|
path: ~/go/pkg/mod
|
|
|
|
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
|
|
|
|
restore-keys: |
|
|
|
|
${{ runner.os }}-go-
|
|
|
|
- name: Make ci
|
|
|
|
run: make ci
|