Move ci dependencies to devDependencies #30
Workflow file for this run
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: Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
setup-node-modules: | |
runs-on: ubuntu-latest | |
timeout-minutes: 15 | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm install | |
lint: | |
name: Linting | |
runs-on: ubuntu-latest | |
needs: setup-node-modules | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Linting | |
run: npm run lint | |
unit-tests: | |
name: Unit Tests | |
runs-on: ubuntu-latest | |
needs: setup-node-modules | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Tests | |
run: npm run test:unit | |
e2e-tests: | |
name: E2E Tests | |
runs-on: ubuntu-latest | |
needs: setup-node-modules | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Tests | |
run: npm run test:e2e | |
type-tests: | |
name: Type Tests | |
runs-on: ubuntu-latest | |
needs: setup-node-modules | |
steps: | |
- name: Git Checkout | |
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: 'npm' | |
- name: Install Dependencies | |
run: npm install | |
- name: Run Tests | |
run: npm run test:types |