forked from UPB-PMRust/website
-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 1.34 KB
/
Copy pathtest-deploy.yml
File metadata and controls
48 lines (40 loc) · 1.34 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
name: Test deployment
on:
pull_request:
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
merge_group:
jobs:
test-deploy:
name: Test deployment
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 22
cache: 'npm'
cache-dependency-path: |
website/package-lock.json
slides/package-lock.json
- name: Install dependencies (slides)
working-directory: slides
run: |
npx -y playwright@^1.41.2 install chromium
npm ci
- name: Build slides for ACS CC
working-directory: slides
run: SLIDES_OUTPUT_FOLDER=../website/static/slides ./build.sh acs_cc
- name: Build slides for FILS English
working-directory: slides
run: SLIDES_OUTPUT_FOLDER=../website/static/slides ./build.sh fils_en
- name: Install dependencies (website)
working-directory: website
run: npm ci
- name: Test build website
working-directory: website
run: npm run build
- name: GitLab Pages Script
run: cp gitlab-deploy.yml website/build/.gitlab-ci.yml