generated from actions/typescript-action
-
Notifications
You must be signed in to change notification settings - Fork 14
71 lines (69 loc) · 2.13 KB
/
build.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
name: build
on: # Rebuild any PRs and main branch changes
push:
branches:
- 'main'
- 'releases/**'
pull_request_target:
jobs:
lint-markdown:
if: ${{ ! github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: ⬇️ lint markdown files
uses: avto-dev/markdown-lint@v1
with:
config: '.markdownlint.json'
args: '**/*.md .github/**/*.md'
lint-renovate:
if: ${{ ! github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: 🧼 lint renovate config
uses: suzuki-shunsuke/[email protected]
with:
config_file_path: renovate.json
build-changes:
if: ${{ ! github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
env:
INPUT_TOKEN: ${{ secrets.ACCESS_TOKEN }}
INPUT_OWNER: tremor-rs
INPUT_REPO: tremor-runtime
INPUT_USER: lhasa-ospo
INPUT_CHECKUSER: false
INPUT_PROMOTEUSER: false
INPUT_LICENSEALLOWLIST: "0bsd\napache-2.0\nbsd-2-clause\nbsd-3-clause\nmit"
steps:
- uses: actions/checkout@v4
- name: "🛠 build + test npm"
run: npm run all
test-changes:
if: ${{ ! github.event.pull_request.head.repo.fork }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: "🚀 test github user workflow"
uses: ./
with:
path: ./
token: ${{ secrets.ACCESS_TOKEN }}
ref: ${{ github.event.pull_request.head.sha }}
repo: tremor-runtime
owner: tremor-rs
user: lhasa-ospo
- name: "🌎 test github org workflow"
uses: ./
with:
path: ./
token: ${{ secrets.ACCESS_TOKEN }}
ref: ${{ github.event.pull_request.head.sha }}
licenseAllowlist: "0bsd\napache-2.0\nbsd-2-clause\nbsd-3-clause\nmit"
repo: roadie-backstage-plugins
owner: RoadieHQ
org: wayfair-contribs
user: lhasa-ospo
checkUser: true
promoteUser: true