diff options
author | Luke Karrys <luke@lukekarrys.com> | 2022-04-08 18:27:38 +0300 |
---|---|---|
committer | Nathan Fritz <fritzy@github.com> | 2022-04-14 00:20:48 +0300 |
commit | 55f2efa76a574cd6c86a43388d4d1544606e2112 (patch) | |
tree | 3e39d3a4cc62dadd7cb2d0f32309f446ac4324a5 /.github | |
parent | 2d87805bd415dad62f7912f1ce1761e2a492ee98 (diff) |
chore: do less smoke testing on every commit
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/ci.yml | 55 |
1 files changed, 19 insertions, 36 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e8b6886e3..67dcfb4d1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,8 @@ jobs: with: node-version: 16.x cache: npm - - run: node ./bin/npm-cli.js run resetdeps - - run: node ./bin/npm-cli.js run lint + - run: node bin/npm-cli.js run resetdeps + - run: node bin/npm-cli.js run lint check_docs: runs-on: ubuntu-latest @@ -43,40 +43,23 @@ jobs: with: node-version: 16.x cache: npm - - run: node ./bin/npm-cli.js run resetdeps - - run: node ./bin/npm-cli.js run licenses - + - run: node bin/npm-cli.js run resetdeps + - run: node bin/npm-cli.js run licenses + smoke-tests: - strategy: - fail-fast: false - matrix: - node-version: - - 12.x - - 14.x - - 16.x - platform: - - os: ubuntu-latest - shell: bash - - os: macos-latest - shell: bash - - os: windows-latest - shell: cmd - runs-on: ${{ matrix.platform.os }} - defaults: - run: - shell: ${{ matrix.platform.shell }} + runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Use Node.js ${{ matrix.node-version }} - uses: actions/setup-node@v3 - with: - node-version: ${{ matrix.node-version }} - cache: npm - - run: node ./bin/npm-cli.js run resetdeps - - run: node ./bin/npm-cli.js run smoke-tests --ignore-scripts - - name: git status - if: matrix.platform.os != 'windows-latest' - run: node scripts/git-dirty.js + - uses: actions/checkout@v3 + - name: Use Node.js 16.x + uses: actions/setup-node@v3 + with: + node-version: 16.x + cache: npm + - run: node bin/npm-cli.js run resetdeps + - run: node bin/npm-cli.js test -w smoke-tests --ignore-scripts + - name: git status + if: matrix.platform.os != 'windows-latest' + run: node scripts/git-dirty.js test: strategy: @@ -107,8 +90,8 @@ jobs: with: node-version: ${{ matrix.node-version }} cache: npm - - run: node ./bin/npm-cli.js run resetdeps - - run: node ./bin/npm-cli.js run test --ignore-scripts + - run: node bin/npm-cli.js run resetdeps + - run: node bin/npm-cli.js run test --ignore-scripts - name: git status if: matrix.platform.os != 'windows-latest' run: node scripts/git-dirty.js |