Put the placeholder jobs into one file

This commit is contained in:
Eric Schultz 2020-10-25 13:40:30 -05:00 committed by Eric Schultz
parent 64e20a14a7
commit 4da1400ae2
7 changed files with 25 additions and 43 deletions

View file

@ -31,6 +31,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-yarn-${{ matrix.node }}- ${{ runner.os }}-yarn-${{ matrix.node }}-
- run: yarn install --frozen-lockfile - run: yarn install --frozen-lockfile
if: steps.node-cache.outputs.cache-hit != 'true'
- name: run eslint - name: run eslint
run: yarn eslint run: yarn eslint
jest: jest:
@ -56,6 +57,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-yarn-${{ matrix.node }}- ${{ runner.os }}-yarn-${{ matrix.node }}-
- run: yarn install --frozen-lockfile - run: yarn install --frozen-lockfile
if: steps.node-cache.outputs.cache-hit != 'true'
- name: run jest - name: run jest
run: yarn jest run: yarn jest
webpack: webpack:
@ -88,7 +90,6 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-yarn-${{ matrix.node }}- ${{ runner.os }}-yarn-${{ matrix.node }}-
- run: yarn install --frozen-lockfile - run: yarn install --frozen-lockfile
- uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0 - uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
with: with:
ruby-version: ${{ matrix.ruby }} ruby-version: ${{ matrix.ruby }}

View file

@ -35,5 +35,6 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-yarn-${{ env.node }}- ${{ runner.os }}-yarn-${{ env.node }}-
- run: yarn install --frozen-lockfile - run: yarn install --frozen-lockfile
if: steps.node-cache.outputs.cache-hit != 'true'
- name: Verify NOTICE-js - name: Verify NOTICE-js
run: yarn notice:js run: yarn notice:js

View file

@ -1,10 +0,0 @@
# License: LGPL-3.0-or-later
# notice_js must pass even on builds where it shouldn't run
# We address this by making a placeholder action
name: Placeholder for NOTICE-js verification
on: ['push', 'pull_request']
jobs:
notice_js:
runs-on: ubuntu-latest
steps:
- run: 'echo "Placeholder for notice_js"'

View file

@ -1,9 +0,0 @@
# notice_ruby must pass even on builds where it shouldn't run
# We address this by making a placeholder action
name: Placeholder for NOTICE-ruby verification
on: ['push', 'pull_request']
jobs:
notice_ruby:
runs-on: ubuntu-latest
steps:
- run: 'echo "Placeholder for notice_ruby"'

View file

@ -1,9 +1,17 @@
# License: LGPL-3.0-or-later # License: LGPL-3.0-or-later
# These jobs must pass even on builds where it shouldn't run # these jobs must always pass so we make placeholders
# We address this by making a placeholder action # We address this by making a placeholders for required jobs
name: Placeholder for Javascript build and test name: Placeholders
on: [push, pull_request] on: ['push', 'pull_request']
jobs: jobs:
notice_js:
runs-on: ubuntu-latest
steps:
- run: 'echo "Placeholder for notice_js"'
notice_ruby:
runs-on: ubuntu-latest
steps:
- run: 'echo "Placeholder for notice_ruby"'
lint: lint:
runs-on: ${{ matrix.os }} runs-on: ${{ matrix.os }}
strategy: strategy:
@ -29,7 +37,12 @@ jobs:
ruby: [2.6.6] ruby: [2.6.6]
steps: steps:
- run: 'echo "Placeholder for webpack"' - run: 'echo "Placeholder for webpack"'
main_build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14.6.0]
ruby: [2.6.6]
steps:
- run: 'echo "Placeholder for main_build"'

View file

@ -51,6 +51,7 @@ jobs:
restore-keys: | restore-keys: |
${{ runner.os }}-yarn-${{ matrix.node }}- ${{ runner.os }}-yarn-${{ matrix.node }}-
- run: yarn install --frozen-lockfile - run: yarn install --frozen-lockfile
if: steps.node-cache.outputs.cache-hit != 'true'
- uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0 - uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
with: with:
ruby-version: ${{ matrix.ruby }} ruby-version: ${{ matrix.ruby }}

View file

@ -1,15 +0,0 @@
# License: LGPL-3.0-or-later
# main_build must pass even on builds where it shouldn't run
# We address this by making a placeholder action
name: Placeholder for Ruby test and build
on: [push, pull_request]
jobs:
main_build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
node: [14.6.0]
ruby: [2.6.6]
steps:
- run: 'echo "Placeholder for main_build"'