-
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #31 from web3privacy/v3
V2 to main
- Loading branch information
Showing
73 changed files
with
24,243 additions
and
1,238 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,77 +1,38 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
branches: [main, v3] | ||
pull_request: | ||
branches: | ||
- main | ||
- dev | ||
|
||
branches: [main, v3] | ||
jobs: | ||
codechecks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: pnpm/action-setup@v2 | ||
- uses: actions/cache@v2 | ||
- name: Checkout the repository | ||
uses: actions/checkout@v4 | ||
- name: Install pnpm | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
path: ~/.pnpm-store | ||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
run_install: false | ||
- name: Install Node.js 20 | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20.x | ||
cache: pnpm | ||
- name: Enable Corepack | ||
run: corepack enable | ||
- name: Get pnpm store directory | ||
shell: bash | ||
run: | | ||
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV | ||
- name: Cache the pnpm lock file | ||
uses: actions/cache@v4 | ||
with: | ||
path: ${{ env.STORE_PATH }} | ||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }} | ||
restore-keys: | | ||
${{ runner.os }}-pnpm- | ||
- name: Install Dependencies | ||
${{ runner.os }}-pnpm-store- | ||
- name: Install package dependencies | ||
run: pnpm install | ||
- name: Typecheck | ||
run: pnpm run typecheck | ||
- name: Lint | ||
- name: Lint the code | ||
run: pnpm run lint | ||
|
||
# build: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: pnpm/action-setup@v2 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 16.x | ||
# cache: pnpm | ||
|
||
# - name: Install | ||
# run: pnpm install | ||
|
||
# - name: Build | ||
# run: pnpm run build | ||
|
||
# test-e2e: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v3 | ||
# - uses: actions/cache@v3 | ||
# with: | ||
# path: | | ||
# ~/.cache | ||
# key: cypress-cache-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} | ||
|
||
# - uses: pnpm/action-setup@v2 | ||
|
||
# - uses: pnpm/action-setup@v2 | ||
# - uses: actions/setup-node@v3 | ||
# with: | ||
# node-version: 16.x | ||
# cache: pnpm | ||
|
||
# - name: Install | ||
# run: pnpm install | ||
|
||
# - name: Cypress PNPM Patch | ||
# run: cp pnpm-lock.yaml package-lock.json | ||
|
||
# - name: Cypress [Hub] | ||
# uses: cypress-io/github-action@v4 | ||
# with: | ||
# install-command: echo | ||
# build: pnpm hub:generate | ||
# start: pnpm hub:preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.