-
Notifications
You must be signed in to change notification settings - Fork 0
32 lines (29 loc) · 1.11 KB
/
tests.yml
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
26
27
28
29
30
31
32
name: Tests
on: [push]
jobs:
tests:
runs-on: ubuntu-20.04
services:
clickhouse:
image: clickhouse/clickhouse-server:22.3.7.28
ports:
- 8124:8123
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org"
- name: Tests
run: |
npm ci
npm run static
npm run test -- --collectCoverage
echo "Check we are starting with clean git checkout"
if [ -n "$(git status -uno -s)" ]; then echo "git status is not clean"; false; fi
echo "Checking that it was built by building"
rm -rf docs/api/ && rm -rf docs/examples
npm run md
echo "Check that build was unnecessary"
if [ -n "$(git status -uno -s)" ]; then echo -e "!!! Unbuilt files."; false; fi