metadata upgrade #763
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
name: Dev CI/CD | |
on: | |
push: | |
branches: | |
- 'master' | |
pull_request: | |
branches: [master] | |
jobs: | |
build: | |
name: Build and test of feature branch | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Show contexts | |
run: | | |
echo github.event_name: ${{ github.event_name }} | |
echo github.sha: ${{ github.sha }} | |
echo github.repository: ${{ github.repository }} | |
echo github.ref: ${{ github.ref }} | |
echo github.head_ref: ${{ github.head_ref }} | |
echo github.base_ref: ${{ github.base_ref }} | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node }} | |
registry-url: "https://npm.pkg.github.com" | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: Install, lint & build | |
run: | | |
yarn install | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}} | |
- name: run node unit tests | |
run: | | |
npx mocha test/unit-tests/*.js | |
- name: run node integration test | |
run: | | |
npx mocha -t 1000000 test/integration/node.integration.test.js | |
- name: run gas integration test | |
run: | | |
npx mocha -t 1000000 test/integration/gas.integration.test.js | |
- name: run ida integration test | |
run: | | |
npx mocha -t 1000000 test/integration/ida.integration.test.js | |
- name: run cfa integration test | |
run: | | |
npx mocha -t 1000000 test/integration/cfa.integration.test.js | |
- name: run gda integration test | |
run: | | |
npx mocha -t 1000000 test/integration/gda.integration.test.js | |
- name: run batch liquidations integration test | |
run: | | |
npx mocha -t 1000000 test/integration/batch.integration.test.js |