Skip to content

Commit

Permalink
Add basic CI that runs make build and check (#49)
Browse files Browse the repository at this point in the history
* Add basic CI that runs make build and check
* Use esbuild installed from node_modules by default
* Clone submodules in CI
  • Loading branch information
n-peugnet authored Jul 16, 2024
1 parent 478c490 commit d3ad528
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 1 deletion.
21 changes: 21 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ESBUILD ?= esbuild
ESBUILD ?= node_modules/.bin/esbuild

define ESBUILDCMD
$(ESBUILD) src/p5.image-map-creator.ts \
Expand Down

0 comments on commit d3ad528

Please sign in to comment.