ci: Rename actions
parent
aa28f61604
commit
9c304feaab
|
@ -10,7 +10,7 @@ on:
|
||||||
branches: [main]
|
branches: [main]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
format:
|
format+lint:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
timeout-minutes: 5
|
timeout-minutes: 5
|
||||||
|
@ -46,7 +46,34 @@ jobs:
|
||||||
git push
|
git push
|
||||||
fi
|
fi
|
||||||
|
|
||||||
test:
|
typecheck:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
|
timeout-minutes: 5
|
||||||
|
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
node-version: [14.x]
|
||||||
|
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||||
|
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
with:
|
||||||
|
ref: ${{ github.head_ref }}
|
||||||
|
- name: Use Node.js ${{ matrix.node-version }}
|
||||||
|
uses: actions/setup-node@v2
|
||||||
|
with:
|
||||||
|
node-version: ${{ matrix.node-version }}
|
||||||
|
- uses: actions/cache@v2
|
||||||
|
with:
|
||||||
|
path: '~/.npm'
|
||||||
|
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
|
||||||
|
restore-keys: |
|
||||||
|
${{ runner.os }}-node-
|
||||||
|
- run: npm ci
|
||||||
|
- run: npm run type-check --if-present
|
||||||
|
|
||||||
|
run:
|
||||||
runs-on: ${{ matrix.os }}
|
runs-on: ${{ matrix.os }}
|
||||||
|
|
||||||
timeout-minutes: 10
|
timeout-minutes: 10
|
||||||
|
@ -73,9 +100,6 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-node-
|
${{ runner.os }}-node-
|
||||||
- run: npm ci
|
- run: npm ci
|
||||||
- run: npm run type-check --if-present
|
|
||||||
- run: npm run format --if-present
|
|
||||||
- run: npm run lint --if-present
|
|
||||||
# TODO: Generate and publish a HTML artifact
|
# TODO: Generate and publish a HTML artifact
|
||||||
- run: npm start
|
- run: npm start
|
||||||
# vim: set et ts=2 sw=2:
|
# vim: set et ts=2 sw=2:
|
||||||
|
|
Loading…
Reference in New Issue