This repository has been archived by the owner on Aug 16, 2024. It is now read-only.
Update readme.md #138
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: | |
branches: | |
- main | |
workflow_dispatch: {} | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
version: [18, 20, 22] | |
steps: | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: ${{ matrix.version }} | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set Timezone | |
uses: MathRobin/[email protected] | |
with: | |
timezoneLinux: Europe/Paris | |
- name: System info | |
run: | | |
echo "node" | |
node -v | |
echo "npm" | |
npm -v | |
echo "yarn" | |
yarn -v | |
echo "yarn enableImmutableInstalls" | |
yarn config get enableImmutableInstalls | |
- name: Install modules | |
run: yarn install | |
- name: Run lint task | |
run: yarn lint | |
- name: Run tests | |
run: yarn test |