diff --git a/.github/workflows/client.yml b/.github/workflows/client.yml new file mode 100644 index 0000000..6a67766 --- /dev/null +++ b/.github/workflows/client.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/contracts.yml b/.github/workflows/contracts.yml new file mode 100644 index 0000000..9b572d0 --- /dev/null +++ b/.github/workflows/contracts.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/extension.yml b/.github/workflows/extension.yml new file mode 100644 index 0000000..406392a --- /dev/null +++ b/.github/workflows/extension.yml @@ -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 \ No newline at end of file diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml new file mode 100644 index 0000000..94ed8eb --- /dev/null +++ b/.github/workflows/website.yml @@ -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 \ No newline at end of file diff --git a/client/.eslintignore b/client/.eslintignore index 0833411..ef08aab 100644 --- a/client/.eslintignore +++ b/client/.eslintignore @@ -1,2 +1,3 @@ .eslintrc.js node_modules +build diff --git a/client/.gitignore b/client/.gitignore index e3fbd98..48912d2 100644 --- a/client/.gitignore +++ b/client/.gitignore @@ -1,2 +1,2 @@ build -node_modules +node_modules \ No newline at end of file diff --git a/extension/.eslintignore b/extension/.eslintignore index 0833411..c22e9f2 100644 --- a/extension/.eslintignore +++ b/extension/.eslintignore @@ -1,2 +1,3 @@ .eslintrc.js node_modules +build \ No newline at end of file diff --git a/website/.eslintignore b/website/.eslintignore index 0833411..ef08aab 100644 --- a/website/.eslintignore +++ b/website/.eslintignore @@ -1,2 +1,3 @@ .eslintrc.js node_modules +build