Skip to content

Commit

Permalink
Second pass, all at once.
Browse files Browse the repository at this point in the history
  • Loading branch information
JimTheCactus committed Oct 2, 2024
1 parent 6dfa144 commit c0b83d9
Showing 1 changed file with 6 additions and 35 deletions.
41 changes: 6 additions & 35 deletions .github/workflows/fmt-lint-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,55 +2,26 @@ name: Check the Program
run-name: Check the formatting and code
on: [push]
jobs:
prep:
check:
runs-on: ubuntu-24.04
container:
image: node:20
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'yarn'
- name: Install the App
run: yarn install
shell: bash
- uses: actions/upload-artifact@v3
with:
name: installed-app-${{ github.run_id }}
path: ${{ github.workspace }}/**/*
format:
runs-on: ubuntu-24.04
container:
image: node:20
needs: prep
steps:
- name: Get Installed App
uses: actions/download-artifact@v3
with:
name: installed-app-${{ github.run_id }}
- name: Check the formatting
run: yarn run prettier --check
shell: bash
lint:
runs-on: ubuntu-24.04
container:
image: node:20
needs: prep
steps:
- name: Get Installed App
uses: actions/download-artifact@v3
with:
name: installed-app-${{ github.run_id }}
- name: Lint the App
run: yarn lint
shell: bash
test:
runs-on: ubuntu-24.04
container:
image: node:20
needs: prep
steps:
- name: Get Installed App
uses: actions/download-artifact@v3
with:
name: installed-app-${{ github.run_id }}
- name: Test the App
run: yarn test
shell: bash

0 comments on commit c0b83d9

Please sign in to comment.