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
167 changes: 167 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,167 @@
# DO NOT EDIT
# This is a generated file by the `rake build_matrix:github:generate` task.
# See `build_matrix.yml` for the build matrix.
# Generate this file with `rake build_matrix:github:generate`.
---
name: CI
'on':
push:
branches:
- main
- develop
pull_request:
branches:
- main
- develop
schedule:
- cron: 0 0 * * 1-5
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: "${{ !contains(github.ref, 'main')}}"
env:
RUNNING_IN_CI: 'true'
NODE_ENV: test
jobs:
validate:
name: Validate CI setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Validate CI setup
run: rake build_matrix:github:validate
lint-ruby:
name: Ruby linter (RuboCop)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
bundler-cache: true
- name: Run RuboCop
run: bundle exec rubocop
lint-javascript:
name: JavaScript linter (Prettier)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: npm
- name: Install dependencies
run: npm install
- name: Run Prettier
run: npm run lint
lint-git:
name: Git linter (Lintje)
runs-on: ubuntu-latest
if: "${{ github.event_name != 'schedule' }}"
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Run Git linter
uses: lintje/[email protected]
build:
name: Build
runs-on: ubuntu-latest
needs:
- validate
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: npm
- name: Setup mono
run: script/setup && echo "$HOME/mono/bin" >> $GITHUB_PATH
- name: Install dependencies
run: npm ci
- name: Bootstrap packages
run: mono bootstrap --ci
- name: Build packages
run: mono build
- name: Cache build artifacts
uses: actions/cache@v4
with:
path: packages/*/dist
key: build-${{ github.sha }}-${{ github.run_id }}
test:
name: Test
runs-on: ubuntu-latest
needs:
- build
strategy:
fail-fast: false
matrix:
include:
- package: "@appsignal/angular"
dependencies: "@angular/[email protected]"
- package: "@appsignal/angular"
dependencies: "@angular/[email protected]"
- package: "@appsignal/core"
dependencies: ''
- package: "@appsignal/javascript"
dependencies: ''
- package: "@appsignal/plugin-breadcrumbs-console"
dependencies: ''
- package: "@appsignal/plugin-window-events"
dependencies: ''
- package: "@appsignal/preact"
dependencies: preact@latest
- package: "@appsignal/preact"
dependencies: [email protected]
- package: "@appsignal/preact"
dependencies: [email protected]
- package: "@appsignal/react"
dependencies: react@latest react-dom@latest
- package: "@appsignal/react"
dependencies: [email protected] [email protected]
- package: "@appsignal/react"
dependencies: [email protected] [email protected]
- package: "@appsignal/react"
dependencies: [email protected] [email protected]
- package: "@appsignal/react"
dependencies: [email protected] [email protected] @testing-library/[email protected]
- package: "@appsignal/stimulus"
dependencies: stimulus@latest
- package: "@appsignal/stimulus"
dependencies: [email protected]
- package: "@appsignal/stimulus"
dependencies: [email protected]
- package: "@appsignal/vue"
dependencies: vue@latest
- package: "@appsignal/vue"
dependencies: [email protected]
- package: "@appsignal/vue"
dependencies: [email protected]
steps:
- uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '24'
cache: npm
- name: Setup mono
run: script/setup && echo "$HOME/mono/bin" >> $GITHUB_PATH
- name: Install dependencies
run: npm ci
- name: Bootstrap packages
run: mono bootstrap --ci
- name: Restore build artifacts
uses: actions/cache@v4
with:
path: packages/*/dist
key: build-${{ github.sha }}-${{ github.run_id }}
- name: Install test dependencies
if: matrix.dependencies != ''
run: script/install_packages ${{ matrix.dependencies }}
- name: Run tests
run: mono test --package=${{ matrix.package }}
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
lint-staged
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ AllCops:
Exclude:
- "node_modules/**/*"
- "test/integration/diagnose/**/*"
- "vendor/**/*"

Style/Documentation:
Enabled: false
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.3
169 changes: 0 additions & 169 deletions .semaphore/semaphore.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .tool-versions
Original file line number Diff line number Diff line change
@@ -1 +1 @@
nodejs 20.18.3
nodejs 24.3.0
Loading
Loading