35 lines
638 B
YAML
35 lines
638 B
YAML
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:
|
|
version: 'v18.19.1'
|
|
cache: 'npm'
|
|
cache-dependency-path: 'package-lock.json'
|
|
|
|
- name: Print Output
|
|
id: output
|
|
run: echo "${{ steps.test-action.outputs.version }}"
|