Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions templates/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
- master
pull_request:

env:
NODE_VERSION: '<%- nodeVersion %>'

jobs:
lint:
name: Lint
Expand All @@ -16,7 +19,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '<%- nodeVersion %>'
node-version: '${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo "::set-output name=dir::$(<%
Expand Down Expand Up @@ -90,7 +93,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '<%- nodeVersion %>'
node-version: '${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo "::set-output name=dir::$(<%
Expand Down Expand Up @@ -164,7 +167,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '<%- nodeVersion %>'
node-version: '${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo "::set-output name=dir::$(<%
Expand Down Expand Up @@ -247,7 +250,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '<%- nodeVersion %>'
node-version: '${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo "::set-output name=dir::$(<%
Expand Down
77 changes: 49 additions & 28 deletions tests/acceptance/__snapshots__/creates-github-actions.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
- master
pull_request:

env:
NODE_VERSION: '6.x'

jobs:
lint:
name: Lint
Expand All @@ -19,7 +22,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '6.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -63,7 +66,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '6.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -107,7 +110,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '6.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -162,7 +165,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '6.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -203,6 +206,9 @@ on:
- master
pull_request:

env:
NODE_VERSION: '8.x'

jobs:
lint:
name: Lint
Expand All @@ -213,7 +219,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '8.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -257,7 +263,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '8.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -301,7 +307,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '8.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -356,7 +362,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '8.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -397,6 +403,9 @@ on:
- master
pull_request:

env:
NODE_VERSION: '6.x'

jobs:
lint:
name: Lint
Expand All @@ -407,7 +416,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '6.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -451,7 +460,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '6.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -495,7 +504,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '6.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -550,7 +559,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '6.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -591,6 +600,9 @@ on:
- master
pull_request:

env:
NODE_VERSION: '10.x'

jobs:
lint:
name: Lint
Expand All @@ -601,7 +613,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -645,7 +657,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -689,7 +701,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -745,7 +757,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -786,6 +798,9 @@ on:
- master
pull_request:

env:
NODE_VERSION: '10.x'

jobs:
lint:
name: Lint
Expand All @@ -796,7 +811,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -840,7 +855,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -884,7 +899,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -940,7 +955,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(npm config get cache)\\"
Expand Down Expand Up @@ -981,6 +996,9 @@ on:
- master
pull_request:

env:
NODE_VERSION: '10.x'

jobs:
lint:
name: Lint
Expand All @@ -991,7 +1009,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
Expand Down Expand Up @@ -1035,7 +1053,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
Expand Down Expand Up @@ -1079,7 +1097,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
Expand Down Expand Up @@ -1136,7 +1154,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
Expand Down Expand Up @@ -1177,6 +1195,9 @@ on:
- master
pull_request:

env:
NODE_VERSION: '10.x'

jobs:
lint:
name: Lint
Expand All @@ -1187,7 +1208,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
Expand Down Expand Up @@ -1231,7 +1252,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
Expand Down Expand Up @@ -1275,7 +1296,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
Expand Down Expand Up @@ -1333,7 +1354,7 @@ jobs:
fetch-depth: 1
- uses: actions/setup-node@v2-beta
with:
node-version: '10.x'
node-version: '\${{ env.NODE_VERSION }}'
- name: Get package manager's global cache path
id: global-cache-dir-path
run: echo \\"::set-output name=dir::$(yarn cache dir)\\"
Expand Down