Merge pull request #32 from svelte-plugins/resizing #15
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Unit Tests (Vitest) | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
if: | | |
( | |
!contains(github.event.head_commit.message, '[skip ci]') && | |
!contains(github.event.head_commit.message, 'version bump') | |
) | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: '18' | |
registry-url: 'https://registry.npmjs.org' | |
- uses: szenius/[email protected] | |
with: | |
timezoneLinux: "America/Los_Angeles" | |
timezoneMacos: "America/Los_Angeles" | |
timezoneWindows: "Pacific Standard Time" | |
- run: npm i | |
- run: npm test | |
- uses: actions/upload-artifact@v2 | |
if: failure() | |
with: | |
name: unit-tests | |
path: ${{ github.workspace }}/coverage/ | |
retention-days: 5 |