-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1010 Bytes
/
check_node.yaml
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
name: check_node
on:
push:
branches:
- "main"
pull_request:
schedule:
- cron: "0 8 * * FRI" # 17:00, every friday on JST
workflow_dispatch:
jobs:
check:
runs-on: ubuntu-latest
permissions:
contents: read
strategy:
matrix:
node-version:
- "18"
- "20"
- "22"
- "latest"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- name: Show environment
run: set -x; pwd; ls -la; node -v; npm -v;
- name: Install
run: npm install
- name: Pack tarball
run: |
npm run build
npm pack
- name: Run test with packed tarball
run: |
TARBALL="$(ls -1 mryhryki-simple-encryption-*.tgz | head -n 1)"
npm install "./${TARBALL}"
npm run build:test
node src/test/index_node.js