-
-
Notifications
You must be signed in to change notification settings - Fork 20
47 lines (36 loc) · 1.14 KB
/
test.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
name: Test
on:
pull_request:
branches: [ master ]
permissions:
contents: read
jobs:
test_groovy:
name: Groovy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- uses: actions/setup-java@99b8673ff64fbf99d8d325f52d9a5bdedb8483e9 # v4.2.1
with:
distribution: 'temurin'
java-version: '21'
cache: 'gradle'
- name: Run Groovy Tests
working-directory: adopt-github-release
run: ./gradlew --info test
test_node:
name: Node
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2
with:
node-version: '20'
cache: 'npm'
cache-dependency-path: 'generate-release-notes/generate-release-notes/package-lock.json'
- name: Install Node Dependencies
working-directory: generate-release-notes/generate-release-notes
run: npm install
- name: Run Tests
working-directory: generate-release-notes/generate-release-notes
run: npm test