From cfc2c7017b04c4af3ae362ecbba3650e2794fc64 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sat, 16 May 2020 23:52:30 +0100 Subject: [PATCH] Add CI --- gitlab-ci.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 gitlab-ci.yaml diff --git a/gitlab-ci.yaml b/gitlab-ci.yaml new file mode 100644 index 0000000..08338ef --- /dev/null +++ b/gitlab-ci.yaml @@ -0,0 +1,37 @@ +name: Test + +on: [push, pull_request] + +jobs: + lint: + runs-on: debian-latest + strategy: + matrix: + node-version: [14.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: yarn install and lint + run: | + yarn install + yarn lint + tsc: + runs-on: debian-latest + strategy: + matrix: + node-version: [14.x] + + steps: + - uses: actions/checkout@v1 + - name: Use Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + - name: yarn install and tsc + run: | + yarn install + tsc -p tsconfig.json --noEmit \ No newline at end of file