From 711204f13a825cbe2dac25fdc5493f9991ede5f0 Mon Sep 17 00:00:00 2001 From: Oleksii Trekhleb Date: Mon, 28 Dec 2020 09:16:33 +0100 Subject: [PATCH] Update CI workflow. --- .github/workflows/CI.yml | 35 +++++++++++++++++++++++++++++++++++ .github/workflows/ci.yml | 37 ------------------------------------- 2 files changed, 35 insertions(+), 37 deletions(-) create mode 100644 .github/workflows/CI.yml delete mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml new file mode 100644 index 00000000..912c719d --- /dev/null +++ b/.github/workflows/CI.yml @@ -0,0 +1,35 @@ +name: CI + +on: + push: + branches: [ master ] + pull_request: + branches: [ master ] + +jobs: + test: + runs-on: ubuntu-latest + strategy: + matrix: + node-version: [ 14.x ] + + steps: + - name: Checkout repository + uses: actions/checkout@v2 + + - name: Setup Node.js ${{ matrix.node-version }} + uses: actions/setup-node@v1 + with: + node-version: ${{ matrix.node-version }} + + - name: Install dependencies + run: npm i + + - name: Run linting + run: npm run lint + + - name: Run tests + run: npm run coverage + + - name: Upload coverage to Codecov + uses: codecov/codecov-action@v1 diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml deleted file mode 100644 index 1499ea36..00000000 --- a/.github/workflows/ci.yml +++ /dev/null @@ -1,37 +0,0 @@ -name: CI - -on: - push: - branches: [ master ] - pull_request: - branches: [ master ] - -jobs: - build: - - runs-on: ubuntu-latest - - strategy: - matrix: - node-version: [14.x] - - steps: - - name: Checkout repository - uses: actions/checkout@v2 - - - name: Setup Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v1 - with: - node-version: ${{ matrix.node-version }} - - - name: Install dependencies - run: npm i - - - name: Run linting - run: npm run lint - - - name: Run tests - run: npm run coverage - - - name: Upload coverage to Codecov - uses: codecov/codecov-action@v1