Skip to content
This repository has been archived by the owner on Jun 27, 2024. It is now read-only.

Calibration

Calibration #339

Workflow file for this run

name: "Calibration"
on:
schedule:
# Runs every day at 00:00 to ensure everything is still working
- cron: "0 0 * * *"
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
concurrency: calibration
jobs:
test-calibration:
name: "Test on Calibration Network"
runs-on: "self-hosted"
strategy:
max-parallel: 1
matrix:
version: [16, 18]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Install node
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.version }}
- name: Install yarn
run: npm install -g yarn
- name: Install yalc
run: npm install -g yalc
- name: Install dependencies
run: |
yarn install
npx playwright install-deps
- name: Lint
run: yarn lint
- name: Format
run: yarn format
- name: Build
run: yarn build
- name: Run tests
run: yarn test:silent
env:
NETWORK: "calibration"
NODE_RPC_URL: ${{ secrets.CALIBRATION_NODE_RPC_URL }}
NODE_RPC_TOKEN: ${{ secrets.CALIBRATION_NODE_RPC_TOKEN }}
ACCOUNT_MNEMONIC: ${{ secrets.ACCOUNT_MNEMONIC }}
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}