-
-
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-java@2dfa2011c5b2a0f1489bf9e433881c92c1631f88 # v4.3.0
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@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-node@1e60f620b9541d16bece96c5465dc8ee9832be0b # v4.0.3
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