File tree Expand file tree Collapse file tree 3 files changed +24
-0
lines changed
Expand file tree Collapse file tree 3 files changed +24
-0
lines changed Original file line number Diff line number Diff line change 4343 uses : actions/checkout@v3
4444 - name : Compile.
4545 run : earthly --ci +compile
46+ unit-test :
47+ name : Unit Test
48+ runs-on : ubuntu-latest
49+ steps :
50+ - name : Download Earthly v0.8.12.
51+ run : " sudo /bin/sh -c 'wget https://github.com/earthly/earthly/releases/download/v0.8.12/earthly-linux-amd64 -O /usr/local/bin/earthly && chmod +x /usr/local/bin/earthly'"
52+ - name : Checkout code.
53+ uses : actions/checkout@v3
54+ - name : Unit test.
55+ run : earthly --ci +unit-test
Original file line number Diff line number Diff line change @@ -138,3 +138,9 @@ compile:
138138 RUN ./ci/compile.sh
139139 SAVE ARTIFACT "target/" AS LOCAL "./"
140140 SAVE ARTIFACT "Cargo.lock" AS LOCAL "./"
141+
142+
143+ unit-test :
144+ FROM +rust-base
145+ DO +COPY_SOURCECODE
146+ RUN ./ci/unit-test.sh
Original file line number Diff line number Diff line change 1+ #! /usr/bin/env sh
2+
3+ set -o errexit
4+ set -o xtrace
5+
6+ cargo test --verbose --workspace
7+ cargo test --verbose --workspace --all-features
8+ cargo test --verbose --workspace --no-default-features
You can’t perform that action at this time.
0 commit comments