local-setup-node/.gitea/workflows/ci.yml
soul-walker 625cb7a64e 实现从官方下载并安装nodejs,并实现nodejs缓存
实现npm、yarn、pnpm等包管理的依赖包缓存
2024-03-20 20:36:03 +08:00

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 }}"