Skip to content

Commit b49ea89

Browse files
authored
Refactor GitHub Actions workflow for testing
1 parent 9a479f6 commit b49ea89

1 file changed

Lines changed: 24 additions & 7 deletions

File tree

‎.github/workflows/test_main.yml‎

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,39 @@
1-
name: test_translator
1+
name: test
22

33
on:
44
push:
55
branches: [main]
66
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
79

810
permissions:
911
contents: read
1012

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: true
16+
1117
jobs:
1218
test:
1319
runs-on: ubuntu-latest
20+
timeout-minutes: 15
21+
1422
steps:
15-
- uses: actions/checkout@v6
16-
- uses: actions/setup-node@v6
23+
- name: Checkout
24+
uses: actions/checkout@v6
25+
26+
- name: Setup Node
27+
uses: actions/setup-node@v6
1728
with:
18-
node-version: '22'
29+
node-version-file: '.nvmrc'
1930
cache: 'npm'
20-
- run: npm ci
21-
- run: npm run lint
22-
- run: npm test
31+
32+
- name: Install dependencies
33+
run: npm ci
34+
35+
- name: Lint (abaplint)
36+
run: npm run lint
37+
38+
- name: Transpile & run unit tests
39+
run: npm test

0 commit comments

Comments
 (0)