Refresh lockfile, update dependabot ignores #1133
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a basic workflow to help you get started with Actions | |
name: CI | |
on: [push, pull_request] | |
defaults: | |
run: | |
shell: bash | |
permissions: | |
contents: read | |
# A workflow run is made up of one or more jobs that can run sequentially or in parallel | |
jobs: | |
test: | |
# The type of runner that the job will run on | |
runs-on: ubuntu-latest | |
# Steps represent a sequence of tasks that will be executed as part of the job | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
- name: Setup Node.js environment | |
uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # v4.0.2 | |
with: | |
node-version: 16.x | |
cache: 'npm' | |
- name: Cache ~/.elm | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: ~/.elm | |
key: elm-${{ runner.os }}-${{ hashFiles('**/elm.json', 'elm-tooling.json') }} | |
- name: Cache node_modules | |
id: cache-node_modules | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: node_modules | |
key: node_modules-${{ runner.os }}-${{ hashFiles('package-lock.json') }} | |
- name: Cache turbo build setup | |
uses: actions/cache@0c45773b623bea8c8e75f6c82b208c3cf94ea4f9 # v4.0.2 | |
with: | |
path: .turbo | |
key: ${{ runner.os }}-turbo-${{ github.sha }} | |
restore-keys: | | |
${{ runner.os }}-turbo- | |
- name: npm ci | |
if: steps.cache-node_modules.outputs.cache-hit != 'true' | |
env: | |
NO_ELM_TOOLING_INSTALL: 1 | |
run: npm ci | |
- name: elm-tooling install | |
run: npx --no-install elm-tooling install | |
- name: Install turbo | |
run: npm install -g turbo | |
- name: Test nodejs version requirements | |
run: turbo run check-engines | |
- name: Run tests | |
run: npm test |