Skip to content

Commit

Permalink
Merge branch 'main' into feat/RegistrationTest
Browse files Browse the repository at this point in the history
  • Loading branch information
lana-shanghai authored Aug 21, 2024
2 parents ad692f4 + 7cf4e1d commit 65e3483
Show file tree
Hide file tree
Showing 10 changed files with 128 additions and 2 deletions.
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: 0 additions & 1 deletion contracts/src/components/registry/registry_test.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ use zkramp::components::registry::registry_mock::RegistryMock;
use zkramp::tests::constants;
use zkramp::tests::utils;


/// Deploys the registry mock contract.
fn setup_contracts() -> IRegistryDispatcher {
// deploy registry
Expand Down
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 extension/src/components/Flex/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const Row = styled.div<{
align-items: ${({ alignItems = 'center' }) => alignItems};
`

// eslint-disable-next-line import/no-unused-modules
export const Column = styled.div<{
gap?: number
justify?: 'stretch' | 'center' | 'start' | 'end' | 'flex-start' | 'flex-end' | 'space-between' | 'space-around'
Expand Down
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 65e3483

Please sign in to comment.