Skip to content

Commit 8e7de12

Browse files
authored
Merge pull request #178 from cucumber/githubactions
Init Github Actions for CI
2 parents db14b9a + bce4b1a commit 8e7de12

File tree

3 files changed

+43
-19
lines changed

3 files changed

+43
-19
lines changed

.github/workflows/build.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Cucumber Scala CI
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
8+
jobs:
9+
build:
10+
name: Build and test
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
os: [ ubuntu-latest ]
15+
java:
16+
- 1.8
17+
- 11
18+
runs-on: ${{ matrix.os }}
19+
steps:
20+
21+
- uses: actions/checkout@v2
22+
23+
- name: Cache sbt
24+
uses: actions/cache@v2
25+
with:
26+
path: |
27+
~/.sbt
28+
~/.ivy2/cache
29+
~/.cache/coursier
30+
key: ${{ runner.os }}-sbt-cache-v2-${{ hashFiles('**/*.sbt') }}-${{ hashFiles('project/build.properties') }}
31+
32+
- name: Set up JDK 1.8
33+
uses: actions/setup-java@v1
34+
with:
35+
java-version: ${{ matrix.java }}
36+
37+
- name: Formatting check
38+
run: sbt scalafmtCheckAll
39+
40+
- name: Run tests
41+
run: sbt +compile +test

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ See also the [CHANGELOG](https://github.com/cucumber/cucumber-jvm/blob/master/CH
1313

1414
### Changed
1515

16+
- [Build] Use Github Actions instead of Travis CI
17+
1618
### Deprecated
1719

1820
### Removed

0 commit comments

Comments
 (0)