swarm view updates #165
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Lint and test | |
# yamllint disable rule:truthy | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
workflow_dispatch: | |
merge_group: | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Install dependencies | |
run: bun install | |
- name: Lint | |
run: bun run lint | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, windows-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Setup bun | |
uses: oven-sh/setup-bun@v2 | |
- name: Install dependencies | |
run: bun install | |
- name: Prepare Playwright | |
run: npx playwright install --with-deps chromium | |
- name: Run tests | |
run: bun run test | |
- name: Report to Coveralls | |
uses: coverallsapp/github-action@v2 | |
if: matrix.os == 'ubuntu-latest' | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} | |
path-to-lcov: coverage/lcov.info | |
# https://github.com/marketplace/actions/alls-green#why | |
alls-green: # This job does nothing and is only used for the branch protection | |
name: All Good | |
if: always() | |
runs-on: ubuntu-latest | |
needs: [lint, test] | |
steps: | |
- name: Decide whether the needed jobs succeeded or failed | |
uses: re-actors/alls-green@release/v1 | |
with: | |
jobs: ${{ toJSON(needs) }} |