-
Notifications
You must be signed in to change notification settings - Fork 310
45 lines (40 loc) · 1.3 KB
/
ci.yml
File metadata and controls
45 lines (40 loc) · 1.3 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
name: CI
on:
push:
branches: [main]
paths:
- 'proposals/**/wit/**'
- 'proposals/**/wit-0.3.0-draft/**'
- '.github/scripts/**'
- '.github/workflows/ci.yml'
pull_request:
branches: [main]
paths:
- 'proposals/**/wit/**'
- 'proposals/**/wit-0.3.0-draft/**'
- '.github/scripts/**'
- '.github/workflows/ci.yml'
jobs:
validate:
name: Validate WIT
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- uses: dorny/paths-filter@de90cc6fb38fc0963ad72b210f1f284cd68cea36 # v3.0.2
id: changes
with:
list-files: json
filters: |
wit-02:
- 'proposals/*/wit/**'
wit-03:
- 'proposals/*/wit-0.3.0-draft/**'
- name: Install tools
if: steps.changes.outputs.wit-02 == 'true' || steps.changes.outputs.wit-03 == 'true'
uses: ./.github/actions/install-tools
- name: Validate changed proposals
if: steps.changes.outputs.wit-02 == 'true' || steps.changes.outputs.wit-03 == 'true'
run: node .github/scripts/validate-proposals.js
env:
WIT_02_FILES: ${{ steps.changes.outputs.wit-02_files }}
WIT_03_FILES: ${{ steps.changes.outputs.wit-03_files }}