-
Notifications
You must be signed in to change notification settings - Fork 1.1k
25 lines (23 loc) · 792 Bytes
/
CI.yml
File metadata and controls
25 lines (23 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
name: CI
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: make
uses: ./.github/actions/build-sqljs
- uses: actions/upload-artifact@v4
with: {name: dist, path: dist}
- name: test
run: npm ci && npm test
- name: generate documentation
run: npm run doc
- name: Update github pages
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
uses: JamesIves/github-pages-deploy-action@3.6.2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: "." # The folder the action should deploy.
CLEAN: false # Automatically remove deleted files from the deploy branch