Skip to content

Update default Node.js version to 18 (#377) #77

Update default Node.js version to 18 (#377)

Update default Node.js version to 18 (#377) #77

Workflow file for this run

# build the image on master
name: Master
on:
push:
branches:
- master
paths-ignore:
- 'README.md'
- '.github/workflows/pr.yml'
- '.github/workflows/*release.yml'
jobs:
master-build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: nelonoel/branch-name@v1.0.1
- name: Docker Login
env:
DOCKERHUB_USERNAME: ${{ secrets.DOCKERHUB_USER }}
DOCKERHUB_TOKEN: ${{ secrets.DOCKERHUB_TOKEN }}
run: docker login --username "$DOCKERHUB_USERNAME" --password "$DOCKERHUB_TOKEN"
- name: Create Short Commit Sha
id: sha_short
if: success()
run: echo ::set-output name=SHA_SHORT::$(git rev-parse --short HEAD)
- name: Build
if: success()
env:
VERSION: ${{ steps.sha_short.outputs.SHA_SHORT }}
run: make build
- name: Test
if: success()
env:
CONTAINER: docker.io/namely/protoc-all:${{ steps.sha_short.outputs.SHA_SHORT }}
run: make test
- name: Test Gateway
if: success()
env:
CONTAINER: docker.io/namely/gen-grpc-gateway:${{ steps.sha_short.outputs.SHA_SHORT }}
run: make test-gwy