forked from pagopa/io-spid-commons
-
Notifications
You must be signed in to change notification settings - Fork 16
50 lines (40 loc) · 1.1 KB
/
ci.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
on:
push:
branches:
- master
pull_request:
branches:
- master
name: Pull request to master
jobs:
linters:
name: Linters
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 10.14.1
uses: actions/setup-node@master
with:
node-version: 10.14.1
- run: yarn install --frozen-lockfile
- run: yarn lint
tests:
name: Tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Use Node.js 10.14.1
uses: actions/setup-node@master
with:
node-version: 10.14.1
- run: yarn install --frozen-lockfile
- run: yarn test
spid_sp_test:
name: SPID compliance test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- run: docker-compose up -d
- run: sudo apt-get update && sudo apt-get install xmlsec1 libxml2-dev libxmlsec1-dev libxmlsec1-openssl
- run: pip3 install spid-sp-test
- run: spid_sp_test --metadata-url http://localhost:3000/metadata --extra --debug ERROR --exit-zero