Skip to content

Commit

Permalink
Compile contracts when uploading artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
jcortejoso committed May 3, 2022
1 parent 253739f commit c5626eb
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 5 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,10 @@ on: push
# - master

jobs:

tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: '14.x'
Expand Down Expand Up @@ -41,7 +40,7 @@ jobs:
upgradability:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: '14.x'
Expand Down Expand Up @@ -69,7 +68,7 @@ jobs:
upgradability-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-node@v1
Expand All @@ -93,7 +92,7 @@ jobs:
kovan-integration:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v1
with:
node-version: '14.x'
Expand Down
25 changes: 25 additions & 0 deletions .github/workflows/upload-artifacts.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,31 @@ jobs:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3

# Setup env for compiling and testing contracts
- uses: actions/setup-node@v1
with:
node-version: '14.x'
- name: Pre-install
run: |
rm -rf node_modules
yarn install --frozen-lockfile
git submodule init
git submodule update
- name: Compile and Lint
run: |
yarn lint
yarn clean
sh ./scripts/build.sh
yarn compile
- name: Run Unit Tests
run: |
yarn test:unit
- name: Run Integration Tests
run: |
yarn test:integration
env:
NODE_OPTIONS: "--max-old-space-size=7500"

# Impersonate AWS role
- name: Configure AWS credentials from Test account
Expand Down

0 comments on commit c5626eb

Please sign in to comment.