-
Notifications
You must be signed in to change notification settings - Fork 3
29 lines (28 loc) · 821 Bytes
/
pr.yml
File metadata and controls
29 lines (28 loc) · 821 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
name: pr
# Triggers the workflow on push or pull request events
on: [pull_request]
jobs:
test-types:
runs-on: ubuntu-latest
name: run typespec
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- name: Find yarn cache
id: yarn-cache-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore cache
uses: actions/cache@v4
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: yarn install
run: yarn install --immutable
- name: build
run: yarn build
- name: test typespec
run: yarn test:dts