generated from int128/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 20
50 lines (46 loc) · 978 Bytes
/
ts.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
name: ts
on:
push:
branches: [main]
paths:
- src/**
- tests/**
- '*.json'
- .github/workflows/ts.yaml
pull_request:
branches: [main]
paths:
- src/**
- tests/**
- '*.json'
- .github/workflows/ts.yaml
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- run: yarn
- run: yarn lint
- run: yarn test
- run: yarn build
- run: yarn package
- name: smoke test
uses: ./
generate:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
- uses: actions/setup-node@v3
with:
node-version: 16
cache: yarn
- run: yarn
- run: yarn format
- run: yarn graphql-codegen
- uses: int128/update-generated-files-action@v2