Skip to content

Commit

Permalink
remove all previous tests, setup cadence testing framework import test (
Browse files Browse the repository at this point in the history
#46)

* remove all previous tests, setup cadence testing framework import test
  • Loading branch information
austinkline authored Jan 8, 2024
1 parent ab82f74 commit 0d550af
Show file tree
Hide file tree
Showing 73 changed files with 906 additions and 23,279 deletions.
63 changes: 27 additions & 36 deletions .github/workflows/unit-tests.yml
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 }}
12 changes: 0 additions & 12 deletions babel.config.json

This file was deleted.

132 changes: 0 additions & 132 deletions cadence/contracts/FlowStorageFees.cdc

This file was deleted.

Loading

0 comments on commit 0d550af

Please sign in to comment.