From 59e450aefbb3780033271453b4e29159ad754230 Mon Sep 17 00:00:00 2001 From: Joangie Marquez <59121896+practicatto@users.noreply.github.com> Date: Sat, 26 Aug 2023 12:42:20 -0400 Subject: [PATCH] Actions strike back (#34) --- .github/workflows/ci.yml | 70 ++++++++++++++++++++++++++++++++++++++++ src/routes/+page.svelte | 4 +-- 2 files changed, 72 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..1e21e2e --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,70 @@ +name: CI + +on: + push: + branches: + - main + - actions-strike-back + pull_request: + +jobs: + lint: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2 + with: + version: 8.6.7 + - uses: actions/setup-node@v3 + with: + node-version: 18.16.1 + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Lint + run: pnpm run lint + + build-and-check: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2.2.2 + with: + version: 8.6.7 + - uses: actions/setup-node@v3 + with: + node-version: 18.16.1 + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Check + run: pnpm run check + + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v3 + - uses: pnpm/action-setup@v2.2.2 + with: + version: 8.6.7 + - uses: actions/setup-node@v3 + with: + node-version: 18.16.1 + cache: pnpm + + - name: Install dependencies + run: pnpm install --frozen-lockfile + + - name: Prepare + run: pnpm playwright install + + - name: Test + run: | + pnpm run test diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index e5bf8dd..1cf6cfc 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,8 +1,8 @@ -
+
-

Let's get cracking bones!

+

Kokoa

Start by exploring: