Skip to content

Commit

Permalink
Add CI workflow.
Browse files Browse the repository at this point in the history
Add a GitHub Action workflow to run the test suite upon every push to
the master branch, and on every pull request targeted at the master
branch.

Also update the checkout and setup-java actions used in the publishing
workflow.
  • Loading branch information
gouttegd committed May 16, 2024
1 parent 85aa5a4 commit b2afd73
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 3 deletions.
21 changes: 21 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: CI check

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
workflow_dispatch:

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up JDK/Maven
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
- name: Run test suite
run: mvn --batch-mode test
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Maven Central Repository
uses: actions/setup-java@v3
- uses: actions/checkout@v4
- name: Set up JDK/Maven
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'
Expand Down

2 comments on commit b2afd73

@ykazakov
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please also test with profiles!
Currently mvn test -Pide fails:

[ERROR] Plugin org.apache.maven.plugins:maven-resources-plugin:3.9.6 or one of its dependencies could not be resolved: The following artifacts could not be resolved: org.apache.maven.plugins:maven-resources-plugin:jar:3.9.6 (absent): org.apache.maven.plugins:maven-resources-plugin:jar:3.9.6 was not found in https://repo.maven.apache.org/maven2 during a previous attempt. This failure was cached in the local repository and resolution is not reattempted until the update interval of central has elapsed or updates are forced -> [Help 1]

@ykazakov
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #1207

Please sign in to comment.