2022-03-24 18:12:04 +00:00
|
|
|
name: PR
|
2021-08-03 14:04:23 +00:00
|
|
|
on:
|
2023-05-11 17:08:44 +00:00
|
|
|
pull_request:
|
|
|
|
branches: ['*']
|
2021-08-03 14:04:23 +00:00
|
|
|
jobs:
|
2023-05-11 17:08:44 +00:00
|
|
|
init:
|
|
|
|
name: Init
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
- uses: ./.github/actions/init
|
|
|
|
- name: Cache all
|
|
|
|
uses: actions/cache@v3
|
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
path: ./*
|
|
|
|
key: ${{ github.sha }}
|
|
|
|
lint:
|
|
|
|
name: Lint check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [init]
|
|
|
|
steps:
|
|
|
|
- name: Cache all
|
|
|
|
uses: actions/cache@v3
|
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
path: ./*
|
|
|
|
key: ${{ github.sha }}
|
|
|
|
- name: Check
|
|
|
|
run: npm run lint
|
|
|
|
format:
|
|
|
|
name: Format check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [init]
|
|
|
|
steps:
|
|
|
|
- name: Cache all
|
|
|
|
uses: actions/cache@v3
|
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
path: ./*
|
|
|
|
key: ${{ github.sha }}
|
|
|
|
- name: Check
|
|
|
|
run: npm run format
|
|
|
|
spell:
|
|
|
|
name: Spell check
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [init]
|
|
|
|
steps:
|
|
|
|
- name: Cache all
|
|
|
|
uses: actions/cache@v3
|
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
path: ./*
|
|
|
|
key: ${{ github.sha }}
|
|
|
|
- name: Check
|
|
|
|
run: npm run spell
|
|
|
|
build:
|
|
|
|
name: Build
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
needs: [init]
|
|
|
|
steps:
|
|
|
|
- name: Cache all
|
|
|
|
uses: actions/cache@v3
|
|
|
|
id: cache
|
|
|
|
with:
|
|
|
|
path: ./*
|
|
|
|
key: ${{ github.sha }}
|
|
|
|
- name: Build
|
|
|
|
run: npm run build
|