Skip to content

Update workflow to use new path and node version #259

Update workflow to use new path and node version

Update workflow to use new path and node version #259

Workflow file for this run

name: build-and-test
on:
pull_request:
branches:
- main
types: [opened, synchronize, reopened]
push:
branches:
- main
jobs:
check-dist:
name: "check-dist matches source"
uses: cloudposse/.github/.github/workflows/ci-typescript-app-check-dist.yml@main

Check failure on line 14 in .github/workflows/build-and-test.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/build-and-test.yml

Invalid workflow file

error parsing called workflow ".github/workflows/build-and-test.yml" -> "cloudposse/.github/.github/workflows/ci-typescript-app-check-dist.yml@main" : failed to fetch workflow: workflow was not found.
with:
node-version: 24.x
unit-test:
name: "unit tests"
runs-on: ubuntu-latest
needs: check-dist
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.ref }}
- uses: actions/setup-node@v4
with:
node-version-file: package.json
cache: yarn
- name: install dependencies
run: yarn add ci
- name: run unit tests
run: yarn test