From e5901c22db20313a76f8af8041586bdcec30d2c4 Mon Sep 17 00:00:00 2001 From: Yusuke Wada Date: Fri, 29 Nov 2024 16:29:19 +0900 Subject: [PATCH] ci: run each CI on GitHub Actions --- .github/workflows/ci.yml | 62 ++++++++++++++++++++++++++++++++++++++-- 1 file changed, 60 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 08554b3..77ce073 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,7 +6,8 @@ on: branches: ['*'] jobs: - ci: + vite: + name: 'Vite' runs-on: ubuntu-latest defaults: run: @@ -22,4 +23,61 @@ jobs: - run: npm install - run: npx playwright install --with-deps - run: npm run build - - run: npm run test + - run: npm run test:e2e:vite + + cloudflare-pages: + name: 'Cloudflare Pages' + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./ + strategy: + matrix: + node: [20, 22] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - run: npm install + - run: npx playwright install --with-deps + - run: npm run build + - run: npm run test:e2e:cloudflare-pages + + cloudflare-workers: + name: 'Cloudflare Workers' + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./ + strategy: + matrix: + node: [20, 22] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - run: npm install + - run: npx playwright install --with-deps + - run: npm run build + - run: npm run test:e2e:cloudflare-workers + + node: + name: 'Node.js' + runs-on: ubuntu-latest + defaults: + run: + working-directory: ./ + strategy: + matrix: + node: [20, 22] + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 + with: + node-version: ${{ matrix.node }} + - run: npm install + - run: npx playwright install --with-deps + - run: npm run build + - run: npm run test:e2e:node