Skip to content

Commit cde97ce

Browse files
committed
add github actions
1 parent 7ebb8d7 commit cde97ce

File tree

2 files changed

+63
-0
lines changed

2 files changed

+63
-0
lines changed

.github/workflows/release-npm.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release NPM
2+
3+
on:
4+
push:
5+
branches: [release/*]
6+
7+
jobs:
8+
publish-npm:
9+
name: Publish NPM module
10+
runs-on: ubuntu-latest
11+
environment: Release
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with:
16+
node-version: '22'
17+
cache: 'npm'
18+
cache-dependency-path: javascript/package-lock.json
19+
- run: npm install-test
20+
working-directory: javascript
21+
- uses: cucumber/[email protected]
22+
with:
23+
npm-token: ${{ secrets.NPM_TOKEN }}
24+
working-directory: javascript

.github/workflows/test-javascript.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: test-javascript
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- renovate/**
8+
pull_request:
9+
branches:
10+
- main
11+
workflow_call:
12+
13+
jobs:
14+
test-javascript:
15+
runs-on: ${{ matrix.os }}
16+
strategy:
17+
fail-fast: false
18+
matrix:
19+
os:
20+
- ubuntu-latest
21+
node-version: ["18.x", "20.x", "22.x"]
22+
include:
23+
- os: windows-latest
24+
node-version: "22.x"
25+
- os: macos-latest
26+
node-version: "22.x"
27+
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- name: with Node.js ${{ matrix.node-version }} on ${{ matrix.os }}
32+
uses: actions/setup-node@v4
33+
with:
34+
node-version: ${{ matrix.node-version }}
35+
cache: "npm"
36+
cache-dependency-path: javascript/package-lock.json
37+
38+
- run: npm install-ci-test
39+
working-directory: javascript

0 commit comments

Comments
 (0)