-
Notifications
You must be signed in to change notification settings - Fork 1
57 lines (55 loc) · 1.29 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
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@v4
- name: Use Node.js v22
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install Packages
run: yarn install
- name: Linting & Formatting
run: yarn analyze:ci
- name: Type Checking
run: yarn analyze:types
test:
name: Test
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v4
- name: Use Node.js v22
uses: actions/setup-node@v4
with:
node-version: 22
- 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