fix(deps): update all non-major dependencies #1053
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
name: 🧪 Tests | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
pull_request: {} | |
permissions: | |
actions: write | |
contents: read | |
jobs: | |
lint: | |
name: ⬣ ESLint | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- name: ⎔ Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: 📥 Download deps | |
run: pnpm install --ignore-scripts --no-frozen-lockfile | |
- name: 🔬 Lint | |
run: pnpm run lint | |
typecheck: | |
name: ʦ TypeScript | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
GHOST_URL: ${{ secrets.VITE_GHOST_URL }} | |
GHOST_CONTENT_API_KEY: ${{ secrets.VITE_GHOST_CONTENT_API_KEY }} | |
GHOST_ADMIN_API_KEY: ${{ secrets.VITE_GHOST_ADMIN_API_KEY }} | |
GHOST_VERSION: ${{ secrets.VITE_GHOST_VERSION }} | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- name: ⎔ Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: 📥 Download deps | |
run: pnpm install --no-frozen-lockfile | |
- name: 👷 Build | |
run: pnpm run build | |
- name: 🔎 Type check | |
run: pnpm run typecheck | |
vitest: | |
name: ⚡ Vitest | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- name: ⎔ Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
- name: 🏄 Copy example env vars to nextjs app | |
run: cp examples/nextjs/.env.example examples/nextjs/.env | |
- name: 📥 Download deps | |
run: pnpm install --no-frozen-lockfile --ignore-scripts | |
- name: ⚡ Run vitest | |
run: pnpm run test | |
vitest-integration: | |
name: ⚡ Vitest Integration tests | |
runs-on: ubuntu-latest | |
env: | |
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }} | |
TURBO_TEAM: ${{ secrets.TURBO_TEAM }} | |
VITE_GHOST_URL: ${{ secrets.VITE_GHOST_URL }} | |
VITE_GHOST_CONTENT_API_KEY: ${{ secrets.VITE_GHOST_CONTENT_API_KEY }} | |
VITE_GHOST_ADMIN_API_KEY: ${{ secrets.VITE_GHOST_ADMIN_API_KEY }} | |
VITE_GHOST_VERSION: ${{ secrets.VITE_GHOST_VERSION }} | |
steps: | |
- name: 🛑 Cancel Previous Runs | |
uses: styfle/[email protected] | |
- name: ⬇️ Checkout repo | |
uses: actions/checkout@v4 | |
- uses: pnpm/[email protected] | |
- name: ⎔ Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
cache: "pnpm" | |
# - name: 🏄 Copy test env vars | |
# run: cp .env.test .env | |
# - name: 🏄 Copy test env vars to Package | |
# run: cp .env.test packages/ts-ghost-content-api/.env | |
# - name: 🏄 Copy test env vars to Admgit in Package | |
# run: cp .env.test packages/ts-ghost-admin-api/.env | |
- name: 📥 Download deps | |
run: pnpm install --no-frozen-lockfile --ignore-scripts | |
- name: ⚡ Run vitest | |
run: pnpm run test:integration |