Skip to content

Commit

Permalink
ci: 🧪 create test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
flixlix committed Apr 15, 2024
1 parent 30c8ad8 commit 4cad61e
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Test
on:
push:
branches:
- "*"

jobs:
test:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2

- name: Cache pnpm modules
id: cache-modules
uses: actions/cache@v2
with:
path: |
~/.pnpm-store
**/node_modules
key: ${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml', 'rollup.config.js') }}
restore-keys: |
${{ runner.os }}-
- name: Setup pnpm
uses: pnpm/[email protected]
with:
version: latest
run_install: false

- name: Install Packages
if: steps.cache-modules.outputs.cache-hit != 'true'
run: pnpm install --no-frozen-lockfile

- name: Test
run: pnpm test

0 comments on commit 4cad61e

Please sign in to comment.