forked from mit-plv/fiat-crypto
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 825 Bytes
/
go.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
name: Test Generated Go
on:
push:
pull_request:
merge_group:
schedule:
- cron: '0 0 1 * *'
jobs:
test-go:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Go 1.13
uses: actions/setup-go@v5
with:
go-version: 1.13
id: go
- name: make only-test-go-module
run: make only-test-go-module EXTERNAL_DEPENDENCIES=1
- name: make only-test-go-files
run: make only-test-go-files EXTERNAL_DEPENDENCIES=1
- name: Test for non-diff of gofmt
run:
DIFF="$(find fiat-go -name "*.go" | xargs gofmt -s -d)"
echo "${DIFF}"
test -z "${DIFF}"