Skip to content

Merge pull request #1 from privacy-scaling-explorations/chore/init-repo #4

Merge pull request #1 from privacy-scaling-explorations/chore/init-repo

Merge pull request #1 from privacy-scaling-explorations/chore/init-repo #4

Workflow file for this run

name: main
on:
push:
branches:
- main
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
style:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: yarn
- name: Install dependencies
run: yarn
- name: Format code
run: yarn format
tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: "20"
cache: yarn
- name: Install dependencies
run: yarn
- name: Get changed files
id: changed-files
uses: tj-actions/changed-files@v44
with:
files: |
packages/**/*.{sol,json,ts}
- if: steps.changed-files.outputs.any_changed == 'true'
name: Compile contracts
run: yarn compile
- if: steps.changed-files.outputs.any_changed == 'true'
name: Test contracts
run: yarn test
- if: steps.changed-files.outputs.any_changed == 'true' && github.event_name == 'push' && github.ref == 'refs/heads/main'
name: Coveralls
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}