Merge pull request #54 from hyperse-io/dependabot/npm_and_yarn/eslint… #14
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: CI-unitest | |
on: | |
push: | |
branches: | |
- main | |
- major | |
- minor | |
# Only consider those paths to trigger the action | |
paths: | |
- "packages/**" | |
- "package.json" | |
- "*.lock" | |
- ".yarnrc.yml" | |
- "tsconfig.base.json" | |
- ".prettier*" | |
- ".github/**" | |
pull_request: | |
branches: | |
- main | |
- major | |
- minor | |
types: | |
- opened | |
- synchronize | |
- reopened | |
# Only consider those paths to trigger the action | |
paths: | |
- "packages/**" | |
- "package.json" | |
- "*.lock" | |
- ".yarnrc.yml" | |
- "tsconfig.base.json" | |
- ".prettier*" | |
- ".github/**" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [18.x] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: 📥 Install Dependencies | |
run: yarn --frozen-lockfile | |
- name: Linter | |
run: | | |
yarn lint | |
- name: Unit tests | |
run: | | |
yarn test | |
- name: Build | |
run: | | |
yarn build |