@@ -6,32 +6,71 @@ permissions:
66 contents : read
77
88jobs :
9- build :
9+ lint :
10+ timeout-minutes : 5
1011 runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ with :
15+ persist-credentials : false
16+ - name : Setup node
17+ uses : actions/setup-node@v4
18+ with :
19+ node-version : 18
20+ cache : yarn
21+ - run : yarn install --frozen-lockfile
22+ - run : yarn lint
23+ build :
24+ timeout-minutes : 15
25+ needs : lint
1126 services :
1227 postgres :
13- image : postgres:11
28+ image : ghcr.io/railwayapp-templates/ postgres-ssl
1429 env :
1530 POSTGRES_USER : postgres
1631 POSTGRES_PASSWORD : postgres
32+ POSTGRES_HOST_AUTH_METHOD : ' md5'
1733 POSTGRES_DB : ci_db_test
1834 ports :
1935 - 5432:5432
2036 options : --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
2137 strategy :
38+ fail-fast : false
2239 matrix :
23- node : ['8', '10', '12', '14', '16', '18']
24- os : [ubuntu-latest, windows-latest, macos-latest]
25- name : Node.js ${{ matrix.node }} (${{ matrix.os }})
40+ node :
41+ - ' 16'
42+ - ' 18'
43+ - ' 20'
44+ - ' 22'
45+ - ' 23'
46+ - ' 24'
47+ os :
48+ - ubuntu-latest
49+ name : Node.js ${{ matrix.node }}
50+ runs-on : ubuntu-latest
51+ env :
52+ PGUSER : postgres
53+ PGPASSWORD : postgres
54+ PGHOST : localhost
55+ PGDATABASE : ci_db_test
56+ PGTESTNOSSL : ' true'
57+ SCRAM_TEST_PGUSER : scram_test
58+ SCRAM_TEST_PGPASSWORD : test4scram
2659 steps :
27- - uses : actions/checkout@v3
60+ - name : Show OS
61+ run : |
62+ uname -a
63+ - run : |
64+ psql \
65+ -c "SET password_encryption = 'scram-sha-256'" \
66+ -c "CREATE ROLE scram_test LOGIN PASSWORD 'test4scram'"
67+ - uses : actions/checkout@v4
2868 with :
2969 persist-credentials : false
3070 - name : Setup node
31- uses : actions/setup-node@v3
71+ uses : actions/setup-node@v4
3272 with :
3373 node-version : ${{ matrix.node }}
3474 cache : yarn
35- - run : yarn install
36- # TODO(bmc): get ssl tests working in ci
37- - run : PGTESTNOSSL=true PGUSER=postgres PGPASSWORD=postgres PGDATABASE=ci_db_test yarn test
75+ - run : yarn install --frozen-lockfile
76+ - run : yarn test
0 commit comments