-
Notifications
You must be signed in to change notification settings - Fork 0
52 lines (43 loc) · 1.1 KB
/
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
name: Test action on a sample project
on:
pull_request:
push:
branches: main
jobs:
test:
strategy:
matrix:
runner:
- ubuntu-latest
rzk-version:
- v0.7.1
- latest
files:
- ""
- example/1-*.rzk.md
runs-on: ${{ matrix.runner }}
steps:
- uses: actions/checkout@v3
- name: Run the action on a sample project
id: rzk-check
uses: ./
with:
rzk-version: ${{ matrix.rzk-version }}
files: ${{ matrix.files }}
- name: Check formatting only
uses: ./
with:
rzk-version: ${{ matrix.rzk-version }}
files: ${{ matrix.files }}
typecheck: false
check-formatting: true
- name: Check action's output
shell: bash
run: |
echo "rzk-version=${{ steps.rzk-check.outputs.rzk-version }}"
- name: Run the action again, using previously installed rzk
uses: ./
with:
system-rzk: true
rzk-version: "must be ignored!"
files: ${{ matrix.files }}