-
Notifications
You must be signed in to change notification settings - Fork 21
59 lines (54 loc) · 1.67 KB
/
integration-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
49
50
51
52
53
54
55
56
57
58
59
name: Integration
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
integration-test:
runs-on: ${{ matrix.os }}
env:
cwd: ./javascript-modules
strategy:
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v2
- name: Use Hugo 0.89
uses: peaceiris/actions-hugo@v2
with:
hugo-version: "0.89.0"
extended: true
- name: Use Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x
# TODO: Remove when possible (https://github.com/actions/setup-node/issues/515)
- name: Windows Node fix
if: ${{ matrix.os == 'windows-latest' }}
run: |
$WhereNode = Get-Command node | Select-Object -ExpandProperty Definition
$NodeDirPath = Split-Path $WhereNode -Parent
cd $NodeDirPath
npm install [email protected]
- name: Use Ruby 2.7.x
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.7
- name: Use Go 1.17.x
uses: actions/setup-go@v2
with:
go-version: "^1.17.6"
- run: yarn install --immutable
working-directory: ${{ env.cwd }}
- name: Build Hugo wasm module
run: go build -tags nodeploy -o hugo_renderer.wasm
working-directory: ${{ env.cwd }}/engines/hugo-engine/full-hugo-renderer
env:
GOOS: js
GOARCH: wasm
- name: Gzip Hugo wasm module
run: gzip --keep hugo_renderer.wasm
working-directory: ${{ env.cwd }}/engines/hugo-engine/full-hugo-renderer
- run: yarn run itest-slow
working-directory: ${{ env.cwd }}/integration-tests