-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (50 loc) · 1.51 KB
/
CI.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Nexus CI
env:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
on:
push:
branches: [main, dev, hotfix/*]
tags: ['**']
pull_request:
types: [opened, reopened, synchronize]
branches-ignore: [main]
jobs:
scripts:
name: Quality assessment via scripts
runs-on: ubuntu-latest
strategy:
matrix:
script:
- pnpm depcheck
- pnpm unimported
- pnpm lint:ci
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup environment
uses: ./.github/actions/setup
- name: Run the script
run: ${{ matrix.script }}
# Disabled because not enough RAM.
# test-build:
# name: Test build
# runs-on: ubuntu-latest
# if: ${{ github.ref != 'refs/heads/main' }}
# needs: [scripts]
# timeout-minutes: 60
# steps:
# - uses: actions/checkout@v4
# - name: Setup environment
# uses: ./.github/actions/setup
# - uses: actions/cache@v3
# with:
# path: |
# ${{ github.workspace }}/.next/cache
# # Generate a new cache whenever packages or source files change.
# key: ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-${{ github.sha }}
# # If source files changed but packages didn't, rebuild from a prior cache.
# restore-keys: |
# ${{ runner.os }}-nextjs-${{ hashFiles('**/pnpm-lock.yaml') }}-
# - name: Build
# run: pnpm run test:build