-
-
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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73 # v4.4.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@eef61447b9ff4aafe5dcd4e0bbf5d482be7e7871 # v4.2.1
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4.1.0
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