-
Notifications
You must be signed in to change notification settings - Fork 0
71 lines (62 loc) · 1.78 KB
/
js_in_docker.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
61
62
63
64
65
66
67
68
69
70
71
---
name: Cloudproof Javascript Library
on:
workflow_call:
inputs:
subcommands:
required: true
type: string
kms-version:
required: true
type: string
findex-cloud-version:
required: true
type: string
regression_files:
required: false
type: string
default: ""
jobs:
js-in-docker:
runs-on: ubuntu-latest
container: cosmian/node_ci_puppeteer
services:
kms:
image: ghcr.io/cosmian/kms:${{ inputs.kms-version }}
findex_cloud:
image: ghcr.io/cosmian/findex_cloud:${{ inputs.findex-cloud-version }}
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Cache build
uses: actions/cache@v3
with:
path: |
/github/home/.cache/puppeteer
node_modules
dist
src/pkg
key: ${{ runner.os }}-docker-node-${{ hashFiles('package.json') }}-${{ hashFiles('src/**', '!.git') }}
restore-keys: |
${{ runner.os }}-docker-node-${{ hashFiles('package.json') }}-${{ hashFiles('src/**', '!.git') }}
- name: Test (no Auth0)
run: ${{ inputs.subcommands }}
env:
REDIS_HOST: redis
KMS_HOST: kms
FINDEX_CLOUD_HOST: findex_cloud
- name: Upload non-regression test vectors
if: inputs.regression_files != ''
uses: actions/upload-artifact@v3
with:
name: cloudproof_js
path: ${{ inputs.regression_files }}
retention-days: 1
if-no-files-found: error