2024-03-12 22:29:51 +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: http://120.46.212.6:3000/joylink/checkout@v4
|
|
|
|
|
|
|
|
- name: Test Local Action
|
|
|
|
id: test-action
|
|
|
|
uses: ./
|
|
|
|
with:
|
2024-03-13 15:42:38 +08:00
|
|
|
go-version: '1.22.1'
|
2024-03-12 22:29:51 +08:00
|
|
|
|
|
|
|
- name: Print Output
|
|
|
|
id: output
|
|
|
|
run: echo "${{ steps.test-action.outputs.go-version }}"
|