-
Notifications
You must be signed in to change notification settings - Fork 1
59 lines (57 loc) · 1.33 KB
/
ci.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
51
52
53
54
55
56
57
58
59
name: 'CI'
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Use Node.js v16
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install Packages
run: yarn install
- name: Format Check
run: yarn format:check
- name: Lint
run: yarn lint:check
- name: Typecheck
run: yarn type:check
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v1
- name: Use Node.js v16
uses: actions/setup-node@v1
with:
node-version: 16
- name: Install Packages
run: yarn install
- name: Test
run: yarn test
- id: runActionValid
name: Try Valid URL
uses: ./
with:
domain: https://joggr.io
expiration_days: 7
- id: runActionInvalid
name: Try Invalid URL
uses: ./
with:
domain: https://not-a-real-domain-at-all-1382712984.com
expiration_days: 7
- id: invalidActionStatus
name: Invalid URL Status
if: steps.runActionInvalid.outputs.error_message == ''
run: exit 1