Update README.md #42
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Quality Assurance | |
on: [workflow_call, push] | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Setup Java | |
uses: actions/setup-java@v4 | |
with: | |
java-version: "21" | |
distribution: "temurin" | |
- name: Setup Gradle | |
uses: ./.github/actions/setup-gradle | |
- name: Tests | |
run: gradle test | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- run: | | |
if [[ "${{ github.event_name }}" == "push" ]]; then | |
echo "This is a push to a branch" | |
elif [[ "${{ github.event_name }}" == "pull_request" ]]; then | |
echo "This is a push to a pull request" | |
fi | |