Skip to content

Bump docker/build-push-action from 5.2.0 to 5.3.0 #1027

Bump docker/build-push-action from 5.2.0 to 5.3.0

Bump docker/build-push-action from 5.2.0 to 5.3.0 #1027

Workflow file for this run

# This workflow will do a clean install of node dependencies 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: javascript-test-runner / pr
on: pull_request
jobs:
precheck:
runs-on: ubuntu-22.04
steps:
- name: Checkout PR
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- name: Use Node.js LTS (18.x)
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
with:
node-version: 18.x
- name: Install project dependencies
run: yarn install --frozen-lockfile
- name: Run exercism/javascript ci precheck (lint code)
run: bin/lint.sh
ci:
runs-on: ubuntu-22.04
strategy:
matrix:
node-version: [18.x]
steps:
- name: Checkout PR
uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@8f152de45cc393bb48ce5d89d36b731f54556e65
with:
node-version: ${{ matrix.node-version }}
- name: Install project dependencies
run: yarn install --frozen-lockfile
- name: Build the test-runner (using Node ${{ matrix.node-version }})
run: bin/test.sh
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@0d103c3126aa41d772a8362f6aa67afac040f80c
with:
install: true
- name: Build Docker image and store in cache
uses: docker/build-push-action@2cdde995de11925a030ce8070c3d77a52ffcf1c0
with:
context: .
push: false
load: true
tags: exercism/javascript-test-runner
cache-from: type=gha
cache-to: type=gha,mode=max
- name: Run Tests in Docker
run: bin/run-tests-in-docker.sh