-
Notifications
You must be signed in to change notification settings - Fork 5
65 lines (56 loc) · 1.44 KB
/
main.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
name: Main
env:
context: './'
cache-name: cache-release
node-version: 18.x
on:
push:
branches:
- main
workflow_dispatch:
jobs:
checks:
uses: micro-lc/micro-lc.github.io/.github/workflows/checks.yml@main
build:
uses: micro-lc/micro-lc.github.io/.github/workflows/build.yml@main
file-changes:
runs-on: ubuntu-latest
outputs:
test-files: ${{ steps.filter.outputs.test-files }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
test-files:
- 'yarn.lock'
- package.json
- '.github/workflows/**'
- 'tests/**'
- 'src/**'
- 'applications/**'
deploy-pages:
needs:
- checks
- build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Restore Build Cache
id: restore-build-cache
uses: actions/cache/restore@v3
with:
path: ./build
key: ${{ runner.os }}-${{ github.sha }}-build
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./build
e2e-tests:
needs:
- build
- file-changes
if: needs.file-changes.outputs.test-files == 'true'
uses: micro-lc/micro-lc.github.io/.github/workflows/playwright-tests.yml@main