-
Notifications
You must be signed in to change notification settings - Fork 12
69 lines (61 loc) · 1.9 KB
/
checkin.yml
File metadata and controls
69 lines (61 loc) · 1.9 KB
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
name: CI/PR
on:
pull_request:
push:
branches:
- main
- validate/*
jobs:
check_cache:
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- run: yarn install --check-cache # https://yarnpkg.com/features/zero-installs#does-it-have-security-implications
check_diff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: yarn
- run: yarn run build
- name: check for uncommitted changes
# Ensure no changes.
run: |
git add -A # Add all content if it exists
git diff --cached --exit-code --stat \
|| (echo "##[error] found changed files after build. please 'yarn run build'" \
"and check in all changes" \
&& git diff --cached \
&& exit 1)
test-ubuntu:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: ./
env:
# We re-specify all of the tokens as environment variables because in non-windows builds tokens cannot be passed as input.
REPO_TOKEN: ${{ github.token }}
SERVICE_TOKEN: ${{ secrets.RichCodeNavServiceTokenProd }}
CODEINDEX_FEED_TOKEN: ${{ secrets.CODEINDEX_FEED_TOKEN }}
with:
service-token: ${{ secrets.RichCodeNavServiceTokenProd }}
languages: typescript
repo-token: ${{ github.token }}
test-windows:
runs-on: windows-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: 16
- uses: ./
env:
REPO_TOKEN: ${{ github.token }}
SERVICE_TOKEN: ${{ secrets.RichCodeNavServiceTokenProd }}
CODEINDEX_FEED_TOKEN: ${{ secrets.CODEINDEX_FEED_TOKEN }}
with:
service-token: ${{ secrets.RichCodeNavServiceTokenProd }}
languages: typescript
repo-token: ${{ github.token }}