Skip to content

Commit

Permalink
chore: use node 16 in CI (#189)
Browse files Browse the repository at this point in the history
update all workflows to use:
- actions/setup-node@v2 with `node-version: 16`
- actions/checkout@v2
- bahmutov/npm-install@v1

License: MIT
Signed-off-by: Oli Evans <[email protected]>
  • Loading branch information
olizilla authored Jun 18, 2021
1 parent fe2f969 commit 630a611
Show file tree
Hide file tree
Showing 8 changed files with 35 additions and 43 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '14'
node-version: '16'
- uses: bahmutov/npm-install@v1
- run: yarn test:api
deploy-dev:
Expand All @@ -23,7 +23,7 @@ jobs:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- name: Publish app
uses: cloudflare/[email protected]
env:
Expand All @@ -37,7 +37,7 @@ jobs:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- name: Publish app
uses: cloudflare/[email protected]
env:
Expand Down
15 changes: 5 additions & 10 deletions .github/workflows/client.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '16'
- uses: bahmutov/npm-install@v1
- name: Typecheck
uses: gozala/[email protected]
Expand All @@ -33,23 +36,15 @@ jobs:
fail-fast: true
steps:
- uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node }}

- name: Install dependencies
uses: bahmutov/npm-install@v1

- uses: bahmutov/npm-install@v1
- name: Test (ES)
run: yarn --cwd packages/client test:es

- name: Test (Web)
run: yarn --cwd packages/client test:web

- name: Test (CJS)
run: yarn --cwd packages/client test:cjs

- name: Coverage
run: yarn --cwd packages/client coverage
11 changes: 3 additions & 8 deletions .github/workflows/cron-metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@ jobs:
env: ['staging', 'production']
steps:
- uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 15

- name: Install dependencies
uses: bahmutov/npm-install@v1

node-version: 16
- uses: bahmutov/npm-install@v1
- name: Run job
env:
DEBUG: '*'
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/cron-pinata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,10 @@ jobs:
env: ['staging', 'production']
steps:
- uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 15

- name: Install dependencies
run: yarn install

node-version: 16
- uses: bahmutov/npm-install@v1
- name: Run job
env:
DEBUG: '*'
Expand Down
11 changes: 3 additions & 8 deletions .github/workflows/cron-pins.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,10 @@ jobs:
timeout-minutes: 60
steps:
- uses: actions/checkout@v2

- name: Setup node
uses: actions/setup-node@v1
- uses: actions/setup-node@v2
with:
node-version: 15

- name: Install dependencies
uses: bahmutov/npm-install@v1

node-version: 16
- uses: bahmutov/npm-install@v1
- name: Run job
env:
DEBUG: '*'
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
deploy-api:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- name: Publish app
uses: cloudflare/[email protected]
env:
Expand All @@ -35,23 +35,32 @@ jobs:
if: github.event.inputs.environment == 'production'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: bahmutov/npm-install@v1
- run: ./packages/tools/cli.js dns --name nft.storage --token ${{ secrets.CF_API_TOKEN }} --zone ${{ secrets.CLOUDFLARE_ZONE }} --content ${{ github.event.inputs.frontend_cname }}
- run: echo "::warning::https://nft.storage"
deploy-frontend-staging:
if: github.event.inputs.environment == 'staging'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: bahmutov/npm-install@v1
- run: ./packages/tools/cli.js dns --name staging.nft.storage --token ${{ secrets.CF_API_TOKEN }} --zone ${{ secrets.CLOUDFLARE_ZONE }} --content ${{ github.event.inputs.frontend_cname }}
- run: echo "::warning::https://staging.nft.storage"
deploy-frontend-dev:
if: github.event.inputs.environment == ''
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: bahmutov/npm-install@v1
- run: ./packages/tools/cli.js dns --name dev.nft.storage --token ${{ secrets.CF_API_TOKEN }} --zone ${{ secrets.CLOUDFLARE_ZONE }} --content ${{ github.event.inputs.frontend_cname }}
- run: echo "::warning::https://dev.nft.storage"
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ jobs:
- uses: actions/setup-node@v2
if: ${{ steps.tag-release.outputs.release_created }}
with:
node-version: '14'
node-version: '16'
registry-url: 'https://registry.npmjs.org'
- name: Install
if: ${{ steps.tag-release.outputs.release_created }}
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ jobs:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
- uses: bahmutov/npm-install@v1
- run: yarn test:website

0 comments on commit 630a611

Please sign in to comment.