-
-
Notifications
You must be signed in to change notification settings - Fork 108
48 lines (42 loc) · 1023 Bytes
/
github-pages-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
46
47
48
name: Test deployment
on:
pull_request:
branches:
- main
defaults:
run:
working-directory: ./website
jobs:
build-prettier-plugin-java:
name: Build prettier-plugin-java
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./packages/prettier-plugin-java
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Build prettier-java-plugin
run: yarn build
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: 18
cache: yarn
- name: Install dependencies
run: yarn install --frozen-lockfile
- name: Test build website
run: yarn build