Scaf End-to-End Tests #16
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
# Simple end-to-end test of installing the project and initializing the | |
# sample project. Not a serious end-to-end test. | |
name: e2e-test | |
run-name: Scaf End-to-End Tests | |
on: [push] | |
env: | |
NODE_VERSION: 20 | |
jobs: | |
create-sample-project: | |
name: Create sample project | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Install pnpm | |
uses: pnpm/[email protected] | |
- name: Set up Node version to 20 | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
registry-url: "https://registry.npmjs.org" | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build package | |
run: pnpm build | |
- name: Initialise sample project | |
# workaround for the "moduleResolution": "node" issue is fixed | |
if: always() | |
run: pnpm --filter=scaf scaf init |