Skip to content

Commit

Permalink
ci
Browse files Browse the repository at this point in the history
  • Loading branch information
ambar committed Apr 14, 2024
1 parent 30ae076 commit a3cc57c
Show file tree
Hide file tree
Showing 3 changed files with 342 additions and 5 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions

name: Test

on:
push:
branches: [main, dev]
pull_request:
branches: [main]

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
steps:
- uses: actions/checkout@v4
# https://github.com/actions/setup-node
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
- run: yarn install
- name: test
run: |
yarn test:coverage
- name: report
uses: coverallsapp/github-action@v2
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
],
"scripts": {
"prepare": "npm test",
"test": "jest",
"test:watch": "jest --watch --notify",
"test": "vitest",
"test:coverage": "vitest run --coverage",
"release": "standard-version"
},
"license": "MIT",
Expand All @@ -19,6 +19,7 @@
"devDependencies": {
"@csstools/postcss-color-mix-function": "^2.0.13",
"@csstools/postcss-relative-color-syntax": "^2.0.13",
"@vitest/coverage-v8": "^1.5.0",
"colorjs.io": "^0.5.0",
"postcss": "^8.4.38",
"postcss-custom-properties": "^13.3.7",
Expand Down
Loading

0 comments on commit a3cc57c

Please sign in to comment.