-
Notifications
You must be signed in to change notification settings - Fork 12
63 lines (63 loc) · 1.71 KB
/
build.yml
File metadata and controls
63 lines (63 loc) · 1.71 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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
name: Build and Check
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
- develop
jobs:
build:
name: Build
uses: Logius-standaarden/Automatisering/.github/workflows/build.yml@main
check:
needs: build
name: Check
uses: Logius-standaarden/Automatisering/.github/workflows/check.yml@main
publish:
needs: build
name: Publish (Logius)
uses: Logius-standaarden/Automatisering/.github/workflows/publish.yml@main
secrets: inherit
spectral_linter:
name: Linter test cases
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Run test suite
run: |
npm install -g @stoplight/spectral-cli
node linter/run-linter-tests.mjs
examples_linter:
needs: spectral_linter
name: Examples linter tests
runs-on: ubuntu-22.04
strategy:
matrix:
example: [ aspnet, express, golang, python, quarkus ]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- uses: actions/setup-java@v4
with:
distribution: 'zulu'
java-version: 21
- name: Setup .NET 9.x
uses: actions/setup-dotnet@v4
with:
dotnet-version: '9.x'
- name: Setup python
uses: actions/setup-python@v5
with:
cache: 'pip'
- name: Install dependencies
run: pip install fastapi uvicorn
- name: Install Spectral
run: npm install -g @stoplight/spectral-cli
- name: Run linter on ${{ matrix.example }} example
run: ./examples/${{ matrix.example }}/build-and-check-project.sh