2024-03-22 14:43:47 +08:00
|
|
|
name: Continuous Integration
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- main
|
|
|
|
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test-action:
|
|
|
|
name: GitHub Actions Test
|
|
|
|
runs-on: local-test
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout
|
|
|
|
id: checkout
|
|
|
|
uses: https://gitea.joylink.club/actions/checkout@v4
|
|
|
|
|
|
|
|
- name: Test Local Action
|
|
|
|
id: test-action
|
|
|
|
uses: ./
|
|
|
|
with:
|
|
|
|
maven-version: 3.8.2
|
|
|
|
|
2024-03-22 14:59:07 +08:00
|
|
|
- name: Check Output
|
|
|
|
id: output
|
|
|
|
run:
|
|
|
|
echo "The cache-hit value is ${{ steps.test-action.outputs.cache-hit
|
|
|
|
}}"
|