Skip to content

Merge pull request #58 from rookie-luochao/dependabot/npm_and_yarn/gl… #94

Merge pull request #58 from rookie-luochao/dependabot/npm_and_yarn/gl…

Merge pull request #58 from rookie-luochao/dependabot/npm_and_yarn/gl… #94

Workflow file for this run

name: Test CI
on:
push:
branches:
- main
pull_request:
branches:
- main
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Use node.js
uses: actions/setup-node@v4
with:
node-version: '20.x'
registry-url: 'https://registry.npmjs.org'
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Cache
id: cache-dependencies
uses: actions/cache@v4
with:
path: |
**/node_modules
key: ${{runner.OS}}-${{hashFiles('**/pnpm-lock.yaml')}}
- name: Installing Dependencies
if: steps.cache-dependencies.outputs.cache-hit != 'true'
run: pnpm install
- name: Running Test
run: pnpm run test