-
Notifications
You must be signed in to change notification settings - Fork 0
63 lines (51 loc) · 1.26 KB
/
Copy pathtest.yml
File metadata and controls
63 lines (51 loc) · 1.26 KB
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
61
62
63
name: Test
on:
pull_request:
workflow_call:
concurrency:
cancel-in-progress: true
group: pr-${{ github.event.pull_request.number }}
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22, 24, 26]
services:
esm:
image: ghcr.io/esm-dev/esm.sh:v137
env:
NPM_TOKEN: fake
NPM_REGISTRY: http://npm:4873
LOG_LEVEL: debug
options: --user root
ports:
- '8080:80'
volumes:
- /home/runner/docker-storage/esmd/npm:/esm/npm
- /home/runner/docker-storage/esmd/storage:/esm/storage
npm:
image: verdaccio/verdaccio:6.2
ports:
- '4873:4873'
container:
image: node:${{ matrix.node-version }}-alpine
env:
ESM_ORIGIN: http://esm:80
ESM_STORAGE_PATH: /esmd
REGISTRY: http://npm:4873
options: --user root
volumes:
- /home/runner/docker-storage/esmd:/esmd
steps:
- name: Checkout project
uses: actions/checkout@v6
- name: Install Bash
run: apk update && apk add bash
- name: Install
run: npm ci
- name: Test Compilation
run: npm run build
- name: Test
run: npm test