-
Notifications
You must be signed in to change notification settings - Fork 17
39 lines (36 loc) · 1.01 KB
/
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
name: Test-Build ModuleSite
# Trigger the workflow on all pull requests
on: pull_request
env:
GITHUB_TOKEN: ${{ secrets.MODULE_FETCH_GITHUB_TOKEN }}
jobs:
gatsby-build:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
# Globally caches yarn dependencies
cache: 'yarn'
- name: Install Project Dependencies
run: yarn install --frozen-lockfile --immutable
- name: Build ModuleSite
run: yarn run build
gatsby-build-mutable-lockfile:
runs-on: ubuntu-latest
steps:
- name: Checkout PR
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
# Globally caches yarn dependencies
cache: 'yarn'
- name: Install Project Dependencies
run: yarn install
- name: Build ModuleSite
run: yarn run build