Skip to content

Commit

Permalink
build: update NodeJS to v16 in CI builds
Browse files Browse the repository at this point in the history
  • Loading branch information
jamaljsr committed Apr 3, 2022
1 parent 0a8c060 commit 1132174
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 18 deletions.
34 changes: 17 additions & 17 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:

strategy:
matrix:
node_version: [12.x]
node_version: [16.x]
os: [ubuntu-latest, windows-latest, macOS-latest]

steps:
Expand All @@ -45,16 +45,16 @@ jobs:
id: yarn-cache-dir
run: echo "::set-output name=dir::$(yarn cache dir)"

- name: yarn cache
uses: actions/cache@v2
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
${{ runner.os }}-yarn-${{ matrix.node_version }}-
${{ runner.os }}-yarn-
# - name: yarn cache
# uses: actions/cache@v2
# id: yarn-cache
# with:
# path: ${{ steps.yarn-cache-dir.outputs.dir }}
# key: ${{ runner.os }}-yarn-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
# restore-keys: |
# ${{ runner.os }}-yarn-${{ matrix.node_version }}-${{ hashFiles('**/yarn.lock') }}
# ${{ runner.os }}-yarn-${{ matrix.node_version }}-
# ${{ runner.os }}-yarn-

- name: install dependencies
working-directory: ./app
Expand Down Expand Up @@ -109,10 +109,10 @@ jobs:
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir.outputs.dir }}
key: ${{ runner.os }}-yarn-12.x-${{ hashFiles('**/yarn.lock') }}
key: ${{ runner.os }}-yarn-16.x-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-12.x-${{ hashFiles('**/yarn.lock') }}
${{ runner.os }}-yarn-12.x-
${{ runner.os }}-yarn-16.x-${{ hashFiles('**/yarn.lock') }}
${{ runner.os }}-yarn-16.x-
${{ runner.os }}-yarn-
- name: setup go v${{ matrix.go_version }}
Expand All @@ -138,10 +138,10 @@ jobs:
- name: git checkout
uses: actions/checkout@v2

- name: setup nodejs v${{ matrix.node_version }}
- name: setup nodejs v16.x
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: download cache
uses: actions/cache@v1
Expand Down Expand Up @@ -192,7 +192,7 @@ jobs:
- name: setup nodejs v${{ matrix.node_version }}
uses: actions/setup-node@v1
with:
node-version: 12.x
node-version: 16.x

- name: download cache
uses: actions/cache@v1
Expand Down
2 changes: 1 addition & 1 deletion proto/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Start with a NodeJS base image that also contains yarn.
FROM node:12.17.0-buster as nodejsbuilder
FROM node:16.14.2-buster as nodejsbuilder

RUN apt-get update && apt-get install -y \
git \
Expand Down

0 comments on commit 1132174

Please sign in to comment.