mirror of
https://github.com/selfxyz/self.git
synced 2026-04-05 03:00:53 -04:00
* Update action.yml * Update circuits.yml * Update contracts.yml * Update npm-publish.yml
42 lines
974 B
YAML
42 lines
974 B
YAML
name: Self Contracts CI/CD
|
|
on:
|
|
push:
|
|
branches:
|
|
- dev
|
|
- main
|
|
paths:
|
|
- 'contracts/**'
|
|
- 'common/**'
|
|
pull_request:
|
|
branches:
|
|
- dev
|
|
- main
|
|
paths:
|
|
- 'contracts/**'
|
|
- 'common/**'
|
|
jobs:
|
|
test_contracts:
|
|
if: github.event.pull_request.draft == false
|
|
runs-on: ubuntu-latest
|
|
environment: development
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set Node.js 20.x
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 20
|
|
- uses: actions/checkout@v4
|
|
- name: Install Dependencies
|
|
uses: ./.github/actions/yarn-install
|
|
- name: Build Common Dependencies
|
|
run: yarn workspace @selfxyz/common build
|
|
- name: Build Contracts)
|
|
run: yarn build
|
|
working-directory: ./contracts
|
|
- name: Run Tests (Contracts)
|
|
working-directory: ./contracts
|
|
# skip until they get fixed
|
|
if: false
|
|
run: yarn test
|