generated from UoaWDCC/ssr-template
-
Notifications
You must be signed in to change notification settings - Fork 0
43 lines (35 loc) · 945 Bytes
/
build.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
name: Build DEV
on:
push:
branches-ignore:
- "main"
jobs:
Build:
runs-on: ubuntu-latest
environment: DEV
strategy:
matrix:
project:
- web
- strapi
- api
steps:
- uses: actions/checkout@v4
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: Install dependencies
run: yarn
working-directory: ${{ matrix.project }}
- name: Set environment variables
env:
VITE_CLERK_PUBLISHABLE_KEY: "${{ secrets.VITE_CLERK_PUBLISHABLE_KEY }}"
run: echo "VITE_CLERK_PUBLISHABLE_KEY=${VITE_CLERK_PUBLISHABLE_KEY}" >> "$GITHUB_ENV"
- name: Run tests
run: yarn test
working-directory: ${{ matrix.project }}
if: matrix.project == 'web'
- name: Build
run: yarn build
working-directory: ${{ matrix.project }}