Skip to content

Commit

Permalink
add test and ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ysmood committed Jul 29, 2024
1 parent 17312ed commit ff11826
Show file tree
Hide file tree
Showing 8 changed files with 1,643 additions and 41 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Publish Package to npm
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
- run: npm ci
- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: test

on: [push]

jobs:
automated-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
cache: "npm"
cache-dependency-path: "package-lock.json"

- name: Install dependencies
run: |
npm install
npx playwright install chromium --with-deps
- run: npm test
Loading

0 comments on commit ff11826

Please sign in to comment.