Skip to content

Bump actions/checkout from 4.1.3 to 4.1.4 #1030

Bump actions/checkout from 4.1.3 to 4.1.4

Bump actions/checkout from 4.1.3 to 4.1.4 #1030

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@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- name: Use Node.js LTS (18.x)
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
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@0ad4b8fadaa221de15dcec353f45205ec38ea70b
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8
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@d70bba72b1f3fd22344832f00baa16ece964efeb
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