Replaces non-canonical scale-set / org-prefixed labels with the existing labels every arcd host registers with. Matches evo for amd64 and spark for arm64. No new labels added.
58 lines
1.2 KiB
YAML
58 lines
1.2 KiB
YAML
name: CI
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
- next
|
|
|
|
jobs:
|
|
lint:
|
|
name: lint
|
|
runs-on: [self-hosted, linux, amd64]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install system dependencies
|
|
run: |
|
|
sudo apt-get update -qq
|
|
sudo apt-get install -y -qq libatomic1 2>/dev/null || true
|
|
|
|
- name: Install Rye
|
|
run: |
|
|
curl -sSf https://rye.astral.sh/get | bash
|
|
echo "$HOME/.rye/shims" >> $GITHUB_PATH
|
|
env:
|
|
RYE_VERSION: '0.44.0'
|
|
RYE_INSTALL_OPTION: '--yes'
|
|
|
|
- name: Install dependencies
|
|
run: rye sync --all-features
|
|
|
|
- name: Run lints
|
|
run: ./scripts/lint
|
|
|
|
test:
|
|
name: test
|
|
runs-on: [self-hosted, linux, amd64]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Rye
|
|
run: |
|
|
curl -sSf https://rye.astral.sh/get | bash
|
|
echo "$HOME/.rye/shims" >> $GITHUB_PATH
|
|
env:
|
|
RYE_VERSION: '0.44.0'
|
|
RYE_INSTALL_OPTION: '--yes'
|
|
|
|
- name: Bootstrap
|
|
run: ./scripts/bootstrap
|
|
|
|
- name: Run tests
|
|
run: ./scripts/test
|