Skip to content

Commit

Permalink
disable watcher in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
alserz1 committed Jun 27, 2024
1 parent 0d44d07 commit c08c9c8
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 25 deletions.
50 changes: 25 additions & 25 deletions .github/workflows/testandlint.yml
Original file line number Diff line number Diff line change
@@ -1,35 +1,35 @@
name: Test and lint

on:
push:
branches-ignore:
- 'rc-**'
push:
branches-ignore:
- 'rc-**'

jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 20
build:
runs-on: ubuntu-latest
timeout-minutes: 20

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

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- name: Prepare
run: npm install
- name: Prepare
run: npm install

- name: Test
run: npm run test
- name: Test
run: npm run test:build

- name: ESLint
run: npm run lint
- name: ESLint
run: npm run lint
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
"build": "tsc && vite build",
"preview": "vite preview",
"test": "jest --watchAll",
"test:build": "jest",
"lint": "eslint ./src",
"prepare": "husky install"
},
Expand Down

0 comments on commit c08c9c8

Please sign in to comment.