File tree Expand file tree Collapse file tree 1 file changed +45
-11
lines changed
Expand file tree Collapse file tree 1 file changed +45
-11
lines changed Original file line number Diff line number Diff line change 1- name : Node.js Package
2- on : [push]
1+ name : CI
2+
3+ on : [push, pull_request]
4+
5+ permissions :
6+ contents : read
7+
38jobs :
49 build :
510 runs-on : ubuntu-latest
11+ services :
12+ postgres :
13+ image : postgres:11
14+ env :
15+ POSTGRES_USER : postgres
16+ POSTGRES_PASSWORD : postgres
17+ POSTGRES_DB : ci_db_test
18+ POSTGRES_HOST_AUTH_METHOD : ' md5'
19+ ports :
20+ - 5432:5432
21+ options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
22+ strategy :
23+ matrix :
24+ node : ['18']
25+ os : [ubuntu-latest]
26+ name : Node.js ${{ matrix.node }} (${{ matrix.os }})
27+ env :
28+ PGUSER : postgres
29+ PGHOST : localhost
30+ PGPASSWORD : postgres
31+ PGDATABASE : ci_db_test
32+ PGTESTNOSSL : ' true'
33+ SCRAM_TEST_PGUSER : scram_test
34+ SCRAM_TEST_PGPASSWORD : test4scram
635 steps :
7- - uses : actions/checkout@v2
8- # Setup .npmrc file to publish to npm
9- - uses : actions/setup-node@v2
36+ - run : |
37+ psql \
38+ -c "SET password_encryption = 'scram-sha-256'" \
39+ -c "CREATE ROLE scram_test LOGIN PASSWORD 'test4scram'"
40+ - uses : actions/checkout@v3
1041 with :
11- node-version : ' 14.x'
12- registry-url : ' https://registry.npmjs.org'
13- - run : npm install
14- - run : npm publish:watch
15- env :
16- NODE_AUTH_TOKEN : ${{ secrets.NPM_AUTH_TOKEN }}
42+ persist-credentials : false
43+ - name : Setup node
44+ uses : actions/setup-node@v3
45+ with :
46+ node-version : ${{ matrix.node }}
47+ cache : yarn
48+ - run : yarn install
49+ # TODO(bmc): get ssl tests working in ci
50+ - run : yarn test
You can’t perform that action at this time.
0 commit comments