From 8a19764223852259856a33698c02dab8e751a240 Mon Sep 17 00:00:00 2001 From: Bsian Date: Sun, 17 May 2020 00:01:33 +0100 Subject: [PATCH] Let's try a different CI --- .gitlab-ci.yml | 44 +++++++++++--------------------------------- 1 file changed, 11 insertions(+), 33 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 08338ef..ba64317 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -1,37 +1,15 @@ -name: Test +stages: + - lint + - build on: [push, pull_request] -jobs: - lint: - runs-on: debian-latest - strategy: - matrix: - node-version: [14.x] +lint: + stage: lint + script: + - yarn lint - 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 +tsc: + stage: build + script: + - tsc -p tsconfig.json -noEmit \ No newline at end of file