-
Notifications
You must be signed in to change notification settings - Fork 0
45 lines (34 loc) · 955 Bytes
/
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
name: Test
permissions:
id-token: write
contents: read
checks: write
on:
push:
jobs:
test:
runs-on: ubuntu-latest
steps:
# Setup
- uses: actions/checkout@v4
- run: yarn --frozen-lockfile
- name: Add elm-review, elm and elm-format to path
run: yarn bin >> $GITHUB_PATH
# Run elm-review
- uses: sparksp/elm-review-action@v1.1.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Run elm-format
- uses: sparksp/elm-format-action@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Run elm-test
- name: Generate tailwind code
run: elm-tailwind-modules --dir ./gen --tailwind-config tailwind.config.js
- name: Run tests
run: elm-test --report junit > report.xml
- name: Test report
uses: mikepenz/action-junit-report@v4
if: always()
with:
report_paths: "report.xml"