-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
remove all previous tests, setup cadence testing framework import test (
#46) * remove all previous tests, setup cadence testing framework import test
- Loading branch information
1 parent
ab82f74
commit 0d550af
Showing
73 changed files
with
906 additions
and
23,279 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,37 @@ | ||
name: Unit Tests | ||
|
||
on: | ||
pull_request: | ||
branches: [main] | ||
push: | ||
branches: [main] | ||
|
||
|
||
jobs: | ||
tests: | ||
name: Flow CLI Tests | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-node@v2 | ||
with: | ||
node-version: ^16 | ||
- name: Install flow cli | ||
run: sh -ci "$(curl -fsSL https://storage.googleapis.com/flow-cli/install.sh)" | ||
- name: Start flow emulator | ||
run: nohup flow emulator & | ||
- name: Install dependencies | ||
run: npm ci | ||
- name: Run tests | ||
run: npm test -- --runInBand | ||
|
||
tests-overflow: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
- uses: actions/cache@v2 | ||
with: | ||
path: | | ||
~/go/pkg/mod | ||
~/.cache/go-build | ||
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }} | ||
restore-keys: | | ||
${{ runner.os }}-go- | ||
- name: run tests | ||
run: go test -timeout 30m -json ./... > test.json | ||
- name: Annotate tests | ||
if: always() | ||
uses: guyarb/[email protected] | ||
with: | ||
test-results: test.json | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: "true" | ||
- name: Set up Go | ||
uses: actions/setup-go@v3 | ||
with: | ||
go-version: 1.18 | ||
- name: Set up Node | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: ^18 | ||
- name: Install Flow dependencies | ||
run: npm i | ||
- name: Install Flow CLI | ||
run: bash -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/master/install.sh)" -- v1.9.2 | ||
- name: Run tests | ||
run: sh ./run-tests.sh | ||
- name: Normalize coverage report filepaths | ||
run : sh ./normalize_coverage_report.sh | ||
- name: Upload coverage reports to Codecov | ||
uses: codecov/codecov-action@v3 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.