Unverified Commit 05827ff9 authored by Hong Minhee's avatar Hong Minhee
Browse files

Run `deno task test:cfworkers` on GitHub Actions

parent 77ec84a9
Loading
Loading
Loading
Loading
+23 −1
Original line number Diff line number Diff line
@@ -108,6 +108,28 @@ jobs:
    - run: deno task test:bun
      working-directory: ${{ github.workspace }}/fedify/

  test-cfworkers:
    runs-on: ubuntu-latest
    steps:
    - if: github.event_name == 'push'
      uses: actions/checkout@v4
    - if: github.event_name == 'pull_request_target'
      uses: actions/checkout@v4
      with:
        repository: ${{ github.event.pull_request.head.repo.full_name }}
        ref: ${{ github.event.pull_request.head.sha }}
    - uses: denoland/setup-deno@v2
      with:
        deno-version: v2.x
    - uses: actions/setup-node@v4
      with:
        node-version: lts/*
    - uses: pnpm/action-setup@v4
      with:
        version: 10
    - run: deno task test:cfworkers
      working-directory: ${{ github.workspace }}/fedify/

  lint:
    runs-on: ubuntu-latest
    steps:
@@ -159,7 +181,7 @@ jobs:
      working-directory: ${{ github.workspace }}/cli/

  publish:
    needs: [test, test-node, test-bun, lint, release-test]
    needs: [test, test-node, test-bun, test-cfworkers, lint, release-test]
    runs-on: ubuntu-latest
    permissions:
      id-token: write