forked from scalameta/metals
-
Notifications
You must be signed in to change notification settings - Fork 0
93 lines (93 loc) · 2.56 KB
/
ci.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
name: CI
on:
push:
branches:
- master
pull_request:
jobs:
unit:
name: ${{ matrix.os }} tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
env:
JAVA_OPTS: -Xss4m -Xms1G -Xmx8G -XX:ReservedCodeCacheSize=1024m -XX:+TieredCompilation -XX:+CMSClassUnloadingEnabled -Dfile.encoding=UTF-8 -Djna.nosys=true
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v7
- name: Run unit tests
run: |
rm .jvmopts
bin/test.sh unit/test
shell: bash
sbt:
name: Sbt integration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v7
- name: Run Sbt tests
run: bin/test.sh 'slow/testOnly -- tests.sbt'
maven:
name: Maven integration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v7
- name: Run Maven tests
run: bin/test.sh 'slow/testOnly -- tests.maven'
gradle:
name: Gradle integration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v7
- name: Run Gradle tests
run: bin/test.sh 'slow/testOnly -- tests.gradle'
mill:
name: Mill integration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v7
- name: Run Mill tests
run: bin/test.sh 'slow/testOnly -- tests.mill'
pants:
name: Pants integration
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v5
- name: Run Pants tests
run: bin/test.sh 'slow/testOnly -- tests.pants'
feature:
name: Slow tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v7
- name: Run slow tests
run: bin/test.sh 'slow/testOnly -- tests.feature'
cross:
name: Scala cross tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v7
- name: Run cross tests
run: sbt +cross/test
checks:
name: Scalafmt/Scalacheck/Docs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: olafurpg/setup-scala@v7
- uses: actions/setup-node@v1
- run: git fetch --depth=10000
- run: git fetch --tags
- name: Scalafmt & Scalafix & Docusaurus
run: |
./bin/scalafmt --test
sbt scalafixCheck docs/docusaurusCreateSite