diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml new file mode 100644 index 0000000..d02bc0e --- /dev/null +++ b/.github/workflows/build.yml @@ -0,0 +1,21 @@ +name: build + +on: + push: + branches: [ "master" ] + pull_request: + branches: [ "master" ] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + submodules: true + - name: Install dependencies + run: make node_modules + - name: Run build + run: make build + - name: Run check + run: make check diff --git a/Makefile b/Makefile index 683a76e..b2a74bf 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -ESBUILD ?= esbuild +ESBUILD ?= node_modules/.bin/esbuild define ESBUILDCMD $(ESBUILD) src/p5.image-map-creator.ts \