Skip to content

Commit

Permalink
Merge pull request #61 from embulk/github-actions-v4
Browse files Browse the repository at this point in the history
Check with GitHub Actions v4
  • Loading branch information
dmikurube authored Feb 17, 2025
2 parents b4191a7 + 11c2186 commit e22864d
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 20 deletions.
20 changes: 0 additions & 20 deletions .github/workflows/build.yml

This file was deleted.

33 changes: 33 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: Check
on: [ pull_request, push ]
jobs:
check:
runs-on: ${{ matrix.os }}
# push: always run.
# pull_request: run only when the PR is submitted from a forked repository, not within this repository.
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macOS-13 # OpenJDK 8 is not supported on macos-14+ (M1).
# - windows-latest # The tests are not ready for Windows.
steps:
- name: Set Git's core.autocrlf to false for Windows before checkout
run: git config --global core.autocrlf false
- uses: actions/checkout@v4
- name: Set up OpenJDK 8
uses: actions/setup-java@v4
with:
java-version: 8
distribution: "temurin"
cache: "gradle"
- name: Check
env:
GCP_EMAIL: ${{secrets.GCP_EMAIL}}
GCP_JSON_KEYFILE: ${{secrets.GCP_JSON_KEYFILE}}
GCP_PRIVATE_KEYFILE: ${{secrets.GCP_PRIVATE_KEYFILE}}
GCP_BUCKET: ${{secrets.GCP_BUCKET}}
GCP_BUCKET_DIRECTORY: ${{secrets.GCP_BUCKET_DIRECTORY}}
run: ./gradlew --stacktrace check

0 comments on commit e22864d

Please sign in to comment.