Skip to content

Commit

Permalink
Run workflow on push
Browse files Browse the repository at this point in the history
  • Loading branch information
ajalt committed Jan 31, 2024
1 parent d9b5a5e commit 3322631
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 10 deletions.
15 changes: 11 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,18 @@
name: Test
name: Test and Publish

on:
pull_request:
paths-ignore:
- 'docs/**'
- 'samples/**'
- '*.md'
push:
branches:
- 'master'
paths-ignore:
- 'docs/**'
- 'samples/**'
- '*.md'

jobs:
test:
strategy:
Expand All @@ -16,7 +23,7 @@ jobs:
EXTRA_GRADLE_ARGS: :test:graalvm:nativeTest apiCheck
runs-on: ${{matrix.os}}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: graalvm/setup-graalvm@v1
with:
java-version: 17
Expand Down Expand Up @@ -49,7 +56,7 @@ jobs:
runs-on: macos-14
if: ${{ github.ref == 'refs/heads/master' && github.repository == 'ajalt/mordant' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Fetch git tags
run: git fetch origin +refs/tags/*:refs/tags/*
- uses: actions/setup-java@v3
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/gradle-wrapper-validation.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
name: "Validate Gradle Wrapper"
on:
push:
paths:
- 'gradle/**'
pull_request:
paths:
- 'gradle/**'
- 'gradlew'
- 'gradlew.bat'
- 'gradle/wrapper/'

jobs:
validation:
name: "Validation"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: gradle/wrapper-validation-action@v1
- uses: actions/checkout@v4
- uses: gradle/wrapper-validation-action@v2

0 comments on commit 3322631

Please sign in to comment.