Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate Travis CI to GitHub Actions #71

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: CI
on:
pull_request:
branches: [ master ]
push:
branches: [ master ]

# Concurrency strategy:
# github.workflow: distinguish this workflow from others
# github.event_name: distinguish `push` event from `pull_request` event
# github.event.number: set to the number of the pull request if `pull_request` event
# github.run_id: otherwise, it's a `push` or `schedule` event, only cancel if we rerun the workflow
#
# Reference:
# https://docs.github.com/en/actions/using-jobs/using-concurrency
# https://docs.github.com/en/actions/learn-github-actions/contexts#github-context
concurrency:
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.event.number || github.run_id }}
cancel-in-progress: true

jobs:
test:
strategy:
matrix:
os: [ 'ubuntu-latest', 'windows-latest', 'macos-latest']
java: [ '8', '11', '17', '21' ]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Setup Java
uses: actions/setup-java@v4
with:
cache: 'maven'
distribution: 'zulu'
java-version: ${{ matrix.java }}
- name: Build and test
run: ./test
shell: bash
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

5 changes: 4 additions & 1 deletion test
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/bin/bash -e
#!/usr/bin/env bash

set -e

cd "$(dirname "$0")"
TOP_PROJ_DIR="$PWD"
BUILD_SRC_DIR="$PWD/src/build"
Expand Down