blob: 18d641b004822fceed6890b1df348d2efd8e8c30 [file] [log] [blame]
# This workflow will do a clean install of node dependencies, cache/restore them, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
name: Node.js CI
on:
push:
branches: [ main, gold_integration ]
pull_request:
branches: [ main, gold_integration ]
jobs:
create_snapshots:
runs-on: ubuntu-latest
env:
GOOGLE_CLOUD_STORAGE: ${{ secrets.GOOGLE_CLOUD_STORAGE }}
GOPATH: ${{ github.workspace }}
defaults:
run:
working-directory: ./images
steps:
- uses: actions/checkout@v2
- uses: actions/setup-go@v2
with:
go-version: '^1.16.4' # The Go version to download (if necessary) and use.
- run: go install go.skia.org/infra/gold-client/cmd/goldctl@latest
- name: Use Node.js 16.x
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-${{ hashFiles('**/lockfiles') }}
- run: npm ci
- run: npm run validate
- run: npm run validate-skottie