6.1.0 #19
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: Test | |
on: [push] | |
jobs: | |
lint: | |
name: Lint project | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Install dependencies | |
run: npm ci | |
- name: Revert changes into the package-lock.json file | |
run: git checkout -- package-lock.json | |
- name: Run lint action | |
uses: wearerequired/lint-action@v2 | |
with: | |
auto_fix: true | |
eslint: true | |
eslint_extensions: js | |
test: | |
name: Testing TPG | |
runs-on: ubuntu-latest | |
needs: lint | |
steps: | |
- name: Check out Git repository | |
uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 6.x.x | |
- name: Install dependencies | |
run: npm ci | |
- name: Run test | |
run: npm run test:ci |