chore: rename dirs to remove logflare name #6
Workflow file for this run
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: JS CI | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: ["main"] | |
paths: | |
- js/** | |
defaults: | |
run: | |
working-directory: js | |
jobs: | |
unit_tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Restore caches | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
js/node_modules | |
key: ${{ runner.os }}-${{matrix.node-version }}-npm | |
- run: npm ci | |
# use experiemntal node option for 16.x | |
- run: NODE_OPTIONS=--experimental-fetch npm run test | |
if: matrix.node-version == '16.x' | |
- run: npm run test | |
if: matrix.node-version != '16.x' | |
build_check: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16.x, 18.x, 20.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup node ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- name: Restore caches | |
uses: actions/cache/restore@v3 | |
with: | |
path: | | |
js/node_modules | |
key: ${{ runner.os }}-${{matrix.node-version }}-npm | |
- name: Install deps | |
run: npm ci | |
- name: Build | |
run: npm run build |