mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
commit
a7688b0426
1 changed files with 26 additions and 65 deletions
91
.github/workflows/ci.yml
vendored
91
.github/workflows/ci.yml
vendored
|
@ -1,77 +1,38 @@
|
||||||
name: CI
|
name: CI
|
||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches: [main, v3]
|
||||||
- main
|
|
||||||
|
|
||||||
pull_request:
|
pull_request:
|
||||||
branches:
|
branches: [main, v3]
|
||||||
- main
|
|
||||||
- dev
|
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
codechecks:
|
codechecks:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- name: Checkout the repository
|
||||||
- uses: pnpm/action-setup@v2
|
uses: actions/checkout@v4
|
||||||
- uses: actions/cache@v2
|
- name: Install pnpm
|
||||||
|
uses: pnpm/action-setup@v4
|
||||||
with:
|
with:
|
||||||
path: ~/.pnpm-store
|
run_install: false
|
||||||
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
- 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: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pnpm-
|
${{ runner.os }}-pnpm-store-
|
||||||
- name: Install Dependencies
|
- name: Install package dependencies
|
||||||
run: pnpm install
|
run: pnpm install
|
||||||
- name: Typecheck
|
- name: Lint the code
|
||||||
run: pnpm run typecheck
|
|
||||||
- name: Lint
|
|
||||||
run: pnpm run lint
|
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
|
|
||||||
|
|
Loading…
Reference in a new issue