waforth/.github/workflows/build.yml
2023-03-18 10:19:11 +01:00

29 lines
764 B
YAML

name: Build
on:
push:
branches: ['*', '!master']
pull_request:
workflow_dispatch:
workflow_call:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup
- run: yarnpkg build
- run: yarnpkg lint
- run: yarnpkg test --coverage
- run: make -C src/web/notebook
- run: ./dist/wafnb2html src/web/notebook/examples/drawing-with-forth.wafnb
# Build & upload pages
- run: |
mkdir -p public/waforth/drawing-with-forth
cp src/web/notebook/examples/drawing-with-forth.html public/waforth/drawing-with-forth/index.html
shell: bash
- uses: actions/upload-pages-artifact@v1
with:
path: public/waforth