Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions .github/workflows/build.yaml → .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,13 @@ name: ci
on: push

jobs:
build:
ci:
strategy:
matrix:
os:
- macos-latest
- ubuntu-latest
- windows-latest
buf-bin-setup:
# these strings are referenced in the tests
- buf-on-path
- buf-not-on-path
runs-on: ${{ matrix.os }}
steps:
- name: checkout
Expand All @@ -23,7 +19,6 @@ jobs:
node-version-file: ".nvmrc"
cache: npm
- uses: bufbuild/buf-action@v1
if: matrix.buf-bin-setup == 'buf-on-path'
with:
setup_only: true
- name: install-deps
Expand All @@ -38,33 +33,27 @@ jobs:
run: npm run format
- name: integration-tests-with-xvfb
env:
BUF_INSTALLED: ${{ matrix.buf-bin-setup }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: xvfb-run -a npm run test:integration
if: runner.os == 'Linux'
- name: integration-tests
shell: bash
env:
BUF_INSTALLED: ${{ matrix.buf-bin-setup }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: npm run test:integration
if: runner.os != 'Linux'
- name: playwright-tests
run: npm run test:playwright
# Limiting playwright tests to macOS for now due to issues with xvfb on Linux and
# timeouts on windows
#
# NOTE: We disable playwright tests when buf is not installed on the system $PATH
# for now so we don't have the extension attempting to resolve the installation.
# We'll need to find a way to intercept the call from playwright's VS Code extension.
if: runner.os == 'macOS' && matrix.buf-bin-setup == 'buf-on-path'
if: runner.os == 'macOS'
- name: check diff
run: node scripts/gh-diffcheck.mjs
- name: upload-playwright-test-results
uses: actions/upload-artifact@v6
if: always()
with:
name: test-results-${{ matrix.buf-bin-setup }}
name: test-results
path: test-results/
retention-days: 5
if-no-files-found: ignore
Loading