diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml new file mode 100644 index 0000000..6c6f028 --- /dev/null +++ b/.github/workflows/run-tests.yml @@ -0,0 +1,25 @@ +name: Run @jwetzell/posistagenet tests +on: + pull_request: + branches: + - main + paths: + - 'src/**' +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Check out repository + uses: actions/checkout@d632683dd7b4114ad314bca15554477dd762a938 # v4.2.0 + + - name: Set up Node.js + uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 + with: + node-version-file: '.nvmrc' + cache: 'npm' + cache-dependency-path: './package-lock.json' + + - name: Install Node.js dependencies + run: npm ci + + - run: npm run test