forked from nvuillam/npm-groovy-lint
-
Notifications
You must be signed in to change notification settings - Fork 0
100 lines (93 loc) · 3.19 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Test
on: [push, pull_request]
jobs:
test_java8_node_12:
name: Test - Debian - Java 8 - Node 12
runs-on: ubuntu-latest
container:
image: openjdk:8-jdk-stretch
timeout-minutes: 15
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install apt packages
run: "apt-get update && apt-get upgrade -y && apt-get -y install wget zip unzip sudo && apt-get clean && echo 'Installed linux dependencies'"
- name: Install node 12
run: curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get update && apt-get install -y nodejs
- name: Install dependencies and link
run: npm ci && npm link
- name: Run tests
run: npm run test
test_java11_node_12:
name: Test - Debian - Java 11 - Node 12
runs-on: ubuntu-latest
timeout-minutes: 15
container:
image: openjdk:11
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install apt packages
run: "apt-get update && apt-get upgrade -y && apt-get -y install wget zip unzip sudo && apt-get clean && echo 'Installed linux dependencies'"
- name: Install node 13
run: curl -sL https://deb.nodesource.com/setup_12.x | bash - && apt-get update && apt-get install -y nodejs
- name: Install dependencies and link
run: npm ci && npm link
- name: Run tests
run: npm run test
test_java14_latest_node_16:
name: Test - Debian - AdoptOpenJDK latest - Node 16
runs-on: ubuntu-latest
container:
image: adoptopenjdk:latest
timeout-minutes: 15
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install node 16
run: curl -sL https://deb.nodesource.com/setup_16.x | bash - && apt-get update && apt-get install -y nodejs
- name: Install dependencies and link
run: npm ci && npm link
- name: Run tests
run: npm run test
test_no_java_node_14_codecov:
name: Test - Debian - No Java - Node 14 - CodeCov
runs-on: ubuntu-latest
container:
image: node:14-buster
timeout-minutes: 15
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install node 14
run: curl -sL https://deb.nodesource.com/setup_14.x | bash - && apt-get update && apt-get install -y nodejs
- name: Install dependencies and link
run: npm ci && npm link
- name: Run tests
run: npm run test:coverage
- name: Submitting code coverage to codecov
run: |
./node_modules/.bin/nyc report --reporter text-lcov > coverage.lcov
curl -s https://codecov.io/bash | bash
test_windows:
name: Test - Windows
runs-on: windows-latest
timeout-minutes: 25
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install dependencies and link
run: npm ci && npm link
- name: Run tests
run: npm run test
test_mac:
name: Test - MacOs
runs-on: macos-latest
timeout-minutes: 25
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Install dependencies and link
run: npm ci && npm link
- name: Run tests
run: npm run test