-
Notifications
You must be signed in to change notification settings - Fork 21
60 lines (54 loc) · 1.54 KB
/
test-each-node.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
60
name: Javascript Each
on:
push:
branches: [none]
# pull_request:
# branches: [main]
# TODO: Update these tests to npm link
# the internal dependencies so that they work
# on unreleased package versions.
jobs:
node-test:
runs-on: ${{ matrix.os }}
env:
cwd: ./javascript-modules
strategy:
matrix:
node-version: [16.x]
os: [ubuntu-latest, windows-latest]
package: [
bookshop-sass,
browser,
builder,
engines/eleventy-engine,
engines/hugo-engine,
engines/jekyll-engine,
engines/svelte-engine,
generate,
generator-plugins/eleventy/eleventy-bookshop,
generator-plugins/sveltekit/sveltekit-bookshop,
helpers,
init,
integration-tests,
live,
styles,
up
]
steps:
- uses: actions/checkout@v2
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
- name: Move yarn workspace package
run: |
mv package.json package.json.yarn
working-directory: ${{ env.cwd }}
- run: npm install
working-directory: ${{ env.cwd }}/${{ matrix.package }}
- name: Ugly fixes
if: ${{ matrix.package == 'engines/svelte-engine' }}
run: npm run testprep
working-directory: ${{ env.cwd }}/${{ matrix.package }}
- run: npm test
working-directory: ${{ env.cwd }}/${{ matrix.package }}