Skip to content

Updated tests to make them work as if was installed from npm published package #56

Updated tests to make them work as if was installed from npm published package

Updated tests to make them work as if was installed from npm published package #56

Workflow file for this run

name: Run Tests
on:
pull_request:
branches:
- dev
jobs:
test:
runs-on: ubuntu-20.04
strategy:
matrix:
node-version: [14, 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-translate-generator-*.tgz
- name: Moves into package folder
run: cd package
- name: Run Tests
run: npm test