generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 1
54 lines (52 loc) · 1.47 KB
/
all_build-and-test.yml
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
name: Build and test
on:
pull_request:
push:
branches:
- main
- 'releases/*'
jobs:
build-package-run:
name: Build, package and run
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
cache: 'npm'
- run: npm ci
- run: npm run build:all
- uses: actions/github-script@v6
id: json
with:
result-encoding: string
script: |
const json = JSON.stringify([
{ label: "A Custom URL", value: "https://custom-url.com" },
{ emoji: "💥", label: "With Emoji", value: "https://custom-emoji-url.com" }
]);
return json;
- uses: ./
with:
title: 'This is a test comment'
status: ${{ job.status }}
github_token: ${{ github.token }}
classic_cms_url: https://classic-cms-url.com
skylark_url: https://skylark-url.com
launcher_url: https://launcher-url.com
custom_id: 'my-custom-id'
object_registry_url: https://appsync-url/graphql
additional_urls: ${{ steps.json.outputs.result }}
lint-test:
name: Lint and test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
- run: npm ci
- run: npm run prettier:check
- run: npm run lint
- run: npm test