local changes are now identified by site_id matching local site_id #110
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
on: pull_request | |
name: "js-tests" | |
jobs: | |
build: | |
name: Testing on ${{ matrix.os }} | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
include: | |
- os: ubuntu-latest | |
# - os: windows-2022 # windows hangs indefintely when installing build tools | |
# can't switch to node19 for windows until https://github.com/WiseLibs/better-sqlite3/pull/870 is resolved | |
# as some js tests use better-sqlite3 | |
- os: macos-latest | |
steps: | |
- name: Checkout js repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
path: ./js | |
repository: vlcn-io/js | |
- name: Checkout typed-sql | |
uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
path: ./typed-sql | |
repository: vlcn-io/typed-sql | |
- name: Load .env file | |
uses: xom9ikk/dotenv@v2 | |
with: | |
path: ./js | |
- name: Install wabt (linux) | |
if: runner.os == 'Linux' | |
run: sudo apt-get update; sudo apt install -y wabt | |
- name: Install wabt and gmake (osx) | |
if: runner.os == 'macOS' | |
run: brew install wabt; brew install make; printf '%s\n%s\n' "/usr/local/opt/make/libexec/gnubin" "$(cat $GITHUB_PATH)" > $GITHUB_PATH | |
- name: Install wasm-pack | |
run: cargo install wasm-pack | |
- name: Setup Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20.x | |
- name: Install pnpm | |
run: npm install -g pnpm | |
- name: Windows build tools | |
if: runner.os == 'Windows' | |
run: npm install --global windows-build-tools | |
- name: Test | |
run: cd js; make test |