Skip to content

fix(core): workaround for batching issue in V9 #615

fix(core): workaround for batching issue in V9

fix(core): workaround for batching issue in V9 #615

Workflow file for this run

name: Test
on: [push, pull_request]
concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true
jobs:
test:
name: Test
runs-on: ubuntu-latest
env:
VALIDATOR_MNEMONIC: ${{secrets.VALIDATOR_MNEMONIC}}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: sudo apt update && sudo apt install -y jq
- run: scripts/start-local-node.sh
- run: yarn install --immutable
- run: yarn build:all
- run: yarn test:all
- name: Upload coverage report to Codacy
uses: codacy/codacy-coverage-reporter-action@v1
if: github.event_name == 'push'
with:
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
# comma-separated list for multiple reports
coverage-reports: packages/arch3-core/coverage/lcov.info
eslint:
name: ESLint
runs-on: ubuntu-latest
permissions:
contents: read
security-events: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
cache: yarn
- run: sudo apt update && sudo apt install -y jq
- run: yarn install --immutable
- run: yarn build:all
- run: yarn lint:sarif:all || true
- run: |
mkdir -p ./reports
for f in *.sarif packages/*/*.sarif; do
# Filter out lint results with suppressions because of nasty false positives on GitHub
jq '.runs |= map(.results |= map(. | select(.suppressions | length == 0)))' "$f" > "./reports/$(basename $f)"
done
- uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: ./reports
category: eslint
wait-for-processing: true