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

View file

@ -35,5 +35,6 @@ jobs:
restore-keys: |
${{ runner.os }}-yarn-${{ env.node }}-
- run: yarn install --frozen-lockfile
if: steps.node-cache.outputs.cache-hit != 'true'
- name: Verify 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
# These jobs must pass even on builds where it shouldn't run
# We address this by making a placeholder action
name: Placeholder for Javascript build and test
on: [push, pull_request]
# these jobs must always pass so we make placeholders
# We address this by making a placeholders for required jobs
name: Placeholders
on: ['push', 'pull_request']
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:
runs-on: ${{ matrix.os }}
strategy:
@ -29,7 +37,12 @@ jobs:
ruby: [2.6.6]
steps:
- 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: |
${{ runner.os }}-yarn-${{ matrix.node }}-
- run: yarn install --frozen-lockfile
if: steps.node-cache.outputs.cache-hit != 'true'
- uses: ruby/setup-ruby@ec106b438a1ff6ff109590de34ddc62c540232e0
with:
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"'