Skip to content

Commit

Permalink
Add build-forc-test-project to ci (FuelLabs#1409)
Browse files Browse the repository at this point in the history
* Add build-forc-test-project to ci

* Fix typo

* Fix forc test command

* Add build-publish-master-image need

* Add to build-forc-test-project

* Add build-forc-test-project to publish on ci

Co-authored-by: Rashad Alston <[email protected]>
Co-authored-by: Rashad Alston <[email protected]>
  • Loading branch information
3 people authored May 2, 2022
1 parent b89ec66 commit efd94cd
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,33 @@ jobs:
rm tmp.txt && exit 0
fi
build-forc-test-project:
needs: cancel-previous-runs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions-rs/toolchain@v1
with:
profile: minimal
toolchain: stable
- uses: Swatinem/rust-cache@v1
- name: Install Forc
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./forc
- name: Install Forc fmt
uses: actions-rs/cargo@v1
with:
command: install
args: --debug --path ./forc-fmt
- name: Initialize test project
run: forc init test-proj
- name: Build test project
run: forc build --path test-proj
- name: Run test project's test suite
run: cd test-proj && forc test

cargo-build-workspace:
needs: cancel-previous-runs
runs-on: ubuntu-latest
Expand Down Expand Up @@ -371,6 +398,7 @@ jobs:
notify-slack-on-failure:
needs:
[
build-forc-test-project,
build-sway-examples,
build-sway-lib-core,
build-sway-lib-std,
Expand Down Expand Up @@ -401,6 +429,7 @@ jobs:
# Only do this job if publishing a release
needs:
[
build-forc-test-project,
build-sway-examples,
build-sway-lib-core,
build-sway-lib-std,
Expand Down Expand Up @@ -462,6 +491,7 @@ jobs:
build-publish-master-image:
needs:
[
build-forc-test-project,
build-sway-examples,
build-sway-lib-core,
build-sway-lib-std,
Expand Down

0 comments on commit efd94cd

Please sign in to comment.