Skip to content

Commit 751161d

Browse files
committed
enable build and tests via IR-pipeline in CI
Signed-off-by: Jun Kimura <jun.kimura@datachain.jp>
1 parent d52743a commit 751161d

File tree

2 files changed

+16
-6
lines changed

2 files changed

+16
-6
lines changed

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ jobs:
4747
- name: Run tests with minimal solidity version
4848
run: make SOLC_VERSION=${{ env.MINIMAL_SOLC_VERSION }} test
4949

50+
- name: Build via IR-pipeline
51+
run: make FOUNDRY_PROFILE=ir build
52+
53+
- name: Run snapshot tests via IR-pipeline
54+
run: make FOUNDRY_PROFILE=ir snapshot
55+
5056
slither:
5157
name: Slither analysis
5258
needs: contract-test

Makefile

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
FORGE=forge
2-
SOLC_VERSION=0.8.24
31
FOUNDRY_PROFILE=default
2+
FORGE=FOUNDRY_PROFILE=$(FOUNDRY_PROFILE) forge
3+
SOLC_VERSION=0.8.24
44
DOCKER=docker
55
ABIGEN="$(DOCKER) run -v .:/workspace -w /workspace -it ethereum/client-go:alltools-v1.11.6 abigen"
66
SOLHINT=npx solhint
@@ -14,11 +14,11 @@ TEST_MNEMONIC="math razor capable expose worth grape metal sunset metal sudden u
1414

1515
.PHONY: build
1616
build:
17-
@$(FORGE) build --sizes --skip test --use solc:$(SOLC_VERSION)
17+
$(FORGE) build --sizes --skip test --use solc:$(SOLC_VERSION)
1818

1919
.PHONY: fmt
2020
fmt:
21-
@$(FORGE) fmt $(FORGE_FMT_OPTS)
21+
$(FORGE) fmt $(FORGE_FMT_OPTS)
2222

2323
.PHONY: lint
2424
lint:
@@ -27,11 +27,15 @@ lint:
2727

2828
.PHONY: test
2929
test:
30-
@FOUNDRY_PROFILE=$(FOUNDRY_PROFILE) $(FORGE) snapshot -vvvv --gas-report --isolate --use solc:$(SOLC_VERSION) $(FORGE_SNAPSHOT_OPTION)
30+
$(FORGE) test -vvvv --gas-report --isolate --use solc:$(SOLC_VERSION) $(FORGE_SNAPSHOT_OPTION)
31+
32+
.PHONY: snapshot
33+
snapshot:
34+
$(FORGE) snapshot -vvvv --gas-report --isolate --use solc:$(SOLC_VERSION) $(FORGE_SNAPSHOT_OPTION)
3135

3236
.PHONY: coverage
3337
coverage:
34-
@$(FORGE) coverage --use solc:$(SOLC_VERSION)
38+
$(FORGE) coverage --use solc:$(SOLC_VERSION)
3539

3640
.PHONY: slither
3741
slither:

0 commit comments

Comments
 (0)