mirror of
https://github.com/web3privacy/explorer-app.git
synced 2024-10-15 16:46:26 +02:00
77 lines
1.7 KiB
YAML
77 lines
1.7 KiB
YAML
name: CI
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- dev
|
|
|
|
jobs:
|
|
codechecks:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: pnpm/action-setup@v2
|
|
- uses: actions/cache@v2
|
|
with:
|
|
path: ~/.pnpm-store
|
|
key: ${{ runner.os }}-pnpm-${{ hashFiles('**/pnpm-lock.yaml') }}
|
|
restore-keys: |
|
|
${{ runner.os }}-pnpm-
|
|
- name: Install Dependencies
|
|
run: pnpm install
|
|
- name: Typecheck
|
|
run: pnpm run typecheck
|
|
- name: 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
|