Skip to content

Commit

Permalink
ci: split into multiple jobs
Browse files Browse the repository at this point in the history
slower and more redundant, but gives us clearer messages in PR page
rather than just "agents CI / Test and build: failing".
  • Loading branch information
nbsp committed Sep 6, 2024
1 parent 0b2b4b6 commit 11594d2
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 7 deletions.
27 changes: 22 additions & 5 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,21 +2,25 @@
#
# SPDX-License-Identifier: Apache-2.0

name: agents CI
name: Build
on:
push:
branches: [main]
pull_request:
branches: [main]

jobs:
test:
name: Test and build
reuse:
name: REUSE-3.2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: fsfe/reuse-action@v4
lint:
name: Formatting
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: REUSE-3.2 compliance check
uses: fsfe/reuse-action@v4
- uses: pnpm/action-setup@v4
- name: Setup node
uses: actions/setup-node@v4
Expand All @@ -29,5 +33,18 @@ jobs:
run: pnpm lint
- name: Prettier
run: pnpm format:check
build:
name: Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: pnpm/action-setup@v4
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: 20
cache: pnpm
- name: Install dependencies
run: pnpm install
- name: Build
run: pnpm build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,4 +26,4 @@ $ pnpm build
Your output will be in the `dist/` directory.

## License
This project is licensed under `Apache-2.0`, and is [REUSE-3.0](https://reuse.software) compliant. Refer to [the license](LICENSES/Apache-2.0.txt) for details.
This project is licensed under `Apache-2.0`, and is [REUSE-3.2](https://reuse.software) compliant. Refer to [the license](LICENSES/Apache-2.0.txt) for details.
2 changes: 1 addition & 1 deletion REUSE.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,6 @@ SPDX-License-Identifier = "Apache-2.0"

# project configuration files
[[annotations]]
path = ["packages/livekit-rtc/.npmignore", ".prettierrc", ".prettierignore", ".eslintrc", "**.json"]
path = [".prettierrc", ".prettierignore", ".eslintrc", "**.json"]
SPDX-FileCopyrightText = "2024 LiveKit, Inc."
SPDX-License-Identifier = "Apache-2.0"

0 comments on commit 11594d2

Please sign in to comment.