forked from mrako/wait-for
-
Notifications
You must be signed in to change notification settings - Fork 410
48 lines (35 loc) · 926 Bytes
/
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
name: Test
on: [push, pull_request]
jobs:
test:
name: Test
runs-on: ubuntu-20.04
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: Build the test Docker image
run: docker build --no-cache --target test-env --tag wait-for-test .
- name: Run the tests
run: docker run wait-for-test
release:
name: Release
runs-on: ubuntu-20.04
timeout-minutes: 20
# Prevents running multiple release scripts at the same time
concurrency: 'release'
needs:
- test
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: 'npm'
- name: Install dependencies
run: npm ci
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npx semantic-release