-
Notifications
You must be signed in to change notification settings - Fork 41
42 lines (40 loc) · 1.33 KB
/
rosetta.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
37
38
39
40
41
42
name: Rosetta
# Rosetta runs rosetta-cli to verify that provenance still meets the Rosetta api
on:
pull_request:
push:
branches:
- main
# Set concurrency for this workflow to cancel in-progress jobs if retriggered.
# The github.ref is only available when triggered by a PR so fall back to github.run_id for other cases.
# The github.run_id is unique for each run, giving each such invocation it's own unique concurrency group.
# Basically, if you push to a PR branch, jobs that are still running for that PR will be cancelled.
# But jobs started because of a merge to main or a release tag push are not cancelled.
concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true
jobs:
rosetta:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: technote-space/[email protected]
with:
PATTERNS: |
**/**.go
go.mod
go.sum
client/rosetta/**
.github/workflows/rosetta.yml
- uses: actions/setup-go@v5
if: ${{ env.GIT_DIFF }}
with:
go-version: '1.20'
- name: Go mod vendor
if: ${{ env.GIT_DIFF }}
run: |
go mod vendor
- name: rosetta
if: ${{ env.GIT_DIFF }}
run: make test-rosetta