Refactor - Using modules JS instead of common JS #68
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: Run Tests | |
on: | |
pull_request: | |
jobs: | |
test: | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
node-version: [16, 18, 20, 21] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Using Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Install Dependencies | |
run: npm install | |
- name: Create package to simulate it is installed from npm | |
run: npm pack | |
- name: Unzip package | |
run: tar -xzf i18n-populator-*.tgz | |
- name: Moves into package folder | |
run: cd package | |
- name: Run Tests | |
run: npm test |