diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index a38018e5a..8f3edcb97 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,46 +1,46 @@ -name: main -on: - - pull_request - - push jobs: small: - name: test / ${{matrix.os}} / ${{matrix.node}} - runs-on: ${{matrix.os}} env: PUPPETEER_SKIP_DOWNLOAD: 1 + name: test / ${{matrix.os}} / ${{matrix.node}} + runs-on: ${{matrix.os}} steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-node@v4 with: - node-version: ${{matrix.node}} cache: npm + node-version: ${{matrix.node}} - run: npm ci - run: npm run test-api strategy: matrix: + include: + - node: lts/hydrogen + os: ubuntu-latest + node: + - node os: - macos-latest - windows-latest - node: - - node - include: - - os: ubuntu-latest - node: lts/gallium full: - name: full build - runs-on: ubuntu-latest env: PUPPETEER_SKIP_DOWNLOAD: 1 + name: full build + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 with: fetch-depth: 0 - uses: actions/setup-node@v4 with: - node-version: node cache: npm + node-version: node - run: npm ci - run: npm test - uses: codecov/codecov-action@v4 +name: main +on: + - pull_request + - push diff --git a/.github/workflows/website.yml b/.github/workflows/website.yml index 26bd71ba0..2d246af71 100644 --- a/.github/workflows/website.yml +++ b/.github/workflows/website.yml @@ -1,23 +1,18 @@ -name: website -on: - push: - branches: - - main jobs: deploy: - runs-on: ubuntu-latest - permissions: - contents: read - pages: write - id-token: write environment: name: Website url: ${{steps.deployment.outputs.page_url}} + permissions: + contents: read + id-token: write + pages: write + runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 20 + node-version: node - run: npm ci - run: npm run docs - uses: actions/upload-pages-artifact@v3 @@ -25,3 +20,8 @@ jobs: path: public - uses: actions/deploy-pages@v4 id: deployment +name: website +on: + push: + branches: + - main