Skip to content

Commit

Permalink
Merge pull request #28 from luiz-lvj/main
Browse files Browse the repository at this point in the history
Setup tests
  • Loading branch information
lana-shanghai authored Aug 21, 2024
2 parents 1f00baf + a9418ff commit e312378
Show file tree
Hide file tree
Showing 8 changed files with 127 additions and 1 deletion.
29 changes: 29 additions & 0 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Client

on: [push, pull_request]

permissions: read-all

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: yarn install
working-directory: client

- name: Build the project
run: yarn build
working-directory: client

- name: Run linting
run: yarn lint
working-directory: client
36 changes: 36 additions & 0 deletions .github/workflows/contracts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Cairo Contracts

on: [push, pull_request]

permissions: read-all

jobs:
check:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Scarb
uses: software-mansion/setup-scarb@v1

- name: Check cairo format
run: scarb fmt --check
working-directory: contracts

- name: Build cairo contracts
run: scarb build
working-directory: contracts

tests:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Scarb
uses: software-mansion/setup-scarb@v1

- name: Run cairo tests
run: scarb test
working-directory: contracts
29 changes: 29 additions & 0 deletions .github/workflows/extension.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: extension

on: [push, pull_request]

permissions: read-all

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: yarn install
working-directory: extension

- name: Build the project
run: yarn build
working-directory: extension

- name: Run linting
run: yarn lint
working-directory: extension
29 changes: 29 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Website

on: [push, pull_request]

permissions: read-all

jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Set up Node.js
uses: actions/setup-node@v2
with:
node-version: '18'

- name: Install dependencies
run: yarn install
working-directory: website

- name: Build the project
run: yarn build
working-directory: website

- name: Run linting
run: yarn lint
working-directory: website
1 change: 1 addition & 0 deletions client/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.eslintrc.js
node_modules
build
2 changes: 1 addition & 1 deletion client/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
build
node_modules
node_modules
1 change: 1 addition & 0 deletions extension/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.eslintrc.js
node_modules
build
1 change: 1 addition & 0 deletions website/.eslintignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.eslintrc.js
node_modules
build

0 comments on commit e312378

Please sign in to comment.