-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (30 loc) · 881 Bytes
/
Copy pathtypescript.yml
File metadata and controls
32 lines (30 loc) · 881 Bytes
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
name: TypeScript Build
on:
push:
branches-ignore: [gh-pages]
pull_request:
branches-ignore: [gh-pages]
jobs:
build:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '#skip-ts')"
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Restore yarn cache
id: yarn-cache
uses: actions/cache@v2
with:
path: "**/node_modules"
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
- name: Install dependencies
if: steps.yarn-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
- name: TypeScript Build Test
run: yarn test