2022-08-03 16:44:46 +02:00
|
|
|
---
|
2019-12-20 21:27:22 +01:00
|
|
|
name: ci
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
schedule:
|
|
|
|
- cron: '3 4 * * 4' # weekly on thursday morning
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
2020-08-21 16:51:09 +02:00
|
|
|
runs-on: ubuntu-latest
|
2019-12-20 21:27:22 +01:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
go:
|
2022-08-03 16:44:46 +02:00
|
|
|
- '1.19'
|
2023-02-03 10:56:44 +01:00
|
|
|
- '1.20'
|
2022-05-04 20:31:10 +02:00
|
|
|
fail-fast: false
|
2020-08-21 16:51:09 +02:00
|
|
|
env:
|
|
|
|
GO111MODULE: on
|
|
|
|
GOPROXY: direct
|
|
|
|
GOSUMDB: off
|
2019-12-20 21:27:22 +01:00
|
|
|
steps:
|
2023-09-07 02:36:25 +02:00
|
|
|
- uses: actions/checkout@v4
|
2019-12-20 21:27:22 +01:00
|
|
|
- name: Set up Go ${{ matrix.go }}
|
2023-12-07 01:29:00 +01:00
|
|
|
uses: actions/setup-go@v5
|
2019-12-20 21:27:22 +01:00
|
|
|
with:
|
|
|
|
go-version: ${{ matrix.go }}
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
make
|
2022-05-04 20:31:10 +02:00
|
|
|
|
|
|
|
actionlint:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-09-07 02:36:25 +02:00
|
|
|
- uses: actions/checkout@v4
|
2022-05-04 20:31:10 +02:00
|
|
|
- name: Check workflow files
|
|
|
|
run: |
|
|
|
|
echo "::add-matcher::.github/actionlint-matcher.json"
|
|
|
|
bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
|
|
|
|
./actionlint
|