Skip to content

Commit

Permalink
Merge pull request #934 from mansona/update-github-ci
Browse files Browse the repository at this point in the history
Update github CI yaml
  • Loading branch information
mansona authored Jun 28, 2023
2 parents c590272 + 845726b commit e060b86
Showing 1 changed file with 38 additions and 23 deletions.
61 changes: 38 additions & 23 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,15 @@ name: CI
on:
push:
branches:
- main
- master
- 'v*'
pull_request: {}

concurrency:
group: ci-${{ github.head_ref || github.ref }}
cancel-in-progress: true

jobs:
lint:
name: Lint
Expand All @@ -20,41 +25,48 @@ jobs:

- run: yarn install
- run: yarn lint

tests:
name: Tests
test:
name: "Tests"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- name: Install Node
uses: actions/setup-node@v3
with:
node-version: 14

- run: yarn install
- run: yarn node-test-with-coverage

floating-deps:
name: Tests (floating dependencies)
node-version: 14.x
cache: yarn
- name: Install Dependencies
run: yarn install --frozen-lockfile
- name: Run Tests
run: yarn node-test-with-coverage

floating:
name: "Floating Dependencies"
runs-on: ubuntu-latest
timeout-minutes: 10

steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 14

- run: yarn install --no-lockfile
- run: yarn node-test
node-version: 14.x
cache: yarn
- name: Install Dependencies
run: yarn install --no-lockfile
- name: Run Tests
run: yarn node-test

all-commands-smoke-tests:
name: Tests (commands smoke test)
runs-on: ubuntu-latest
timeout-minutes: 20

needs:
- lint
- tests
- floating-deps
- test
- floating

strategy:
fail-fast: false
Expand Down Expand Up @@ -143,10 +155,11 @@ jobs:

name: Smoke Tests (Node v${{ matrix.node }} with npm)
runs-on: ubuntu-latest
timeout-minutes: 20

needs:
- lint
- tests
- test

steps:
- uses: actions/checkout@v1
Expand All @@ -169,10 +182,11 @@ jobs:

name: Smoke Tests (Node v${{ matrix.node }} with yarn)
runs-on: ubuntu-latest
timeout-minutes: 20

needs:
- lint
- tests
- test

steps:
- uses: actions/checkout@v1
Expand All @@ -191,10 +205,11 @@ jobs:
windows-smoke-tests:
name: Smoke Tests (Windows)
runs-on: windows-latest
timeout-minutes: 20

needs:
- lint
- tests
- test

steps:
- uses: actions/checkout@v1
Expand Down

0 comments on commit e060b86

Please sign in to comment.