-
Notifications
You must be signed in to change notification settings - Fork 261
Expand file tree
/
Copy pathcall.test-automation-contracts.yml
More file actions
52 lines (42 loc) · 1.24 KB
/
call.test-automation-contracts.yml
File metadata and controls
52 lines (42 loc) · 1.24 KB
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
43
44
45
46
47
48
49
50
51
52
name: Reusable Workflow | Automation Contracts
on:
workflow_call:
jobs:
test-automation-contract:
name: Test Automation Contracts
runs-on: ubuntu-22.04
defaults:
run:
shell: nix develop .#ci-default -c bash -xe {0}
steps:
- uses: actions/checkout@v4
- name: Setup workflow base
id: base
uses: ./.github/actions/setup-workflow-base
with:
package-name: automation-contracts
cache-key-prefix: automation-contracts-
dev-shell-name: ci-default
- name: Install dependencies
if: steps.base.outputs.cache-hit != 'true'
run: |
yarn install --frozen-lockfile
solc --version
forge --version
- name: Lint and build
if: steps.base.outputs.cache-hit != 'true'
run: |
yarn lint
yarn build
- name: Test automation-contracts-scheduler
if: steps.base.outputs.cache-hit != 'true'
run: |
yarn workspace scheduler test
env:
FOUNDRY_PROFILE: ci
- name: Test automation-contracts-autowrap
if: steps.base.outputs.cache-hit != 'true'
run: |
yarn workspace autowrap test
env:
FOUNDRY_PROFILE: ci