Scheduled spread tests #148
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: Scheduled spread tests | |
on: | |
schedule: | |
# At 03:00 on Wednesday and Sunday. | |
- cron: "0 3 * * WED,SUN" | |
workflow_dispatch: | |
jobs: | |
snap-build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Build snap | |
uses: snapcore/action-build@v1 | |
id: snapcraft | |
- name: Upload snap artifact | |
uses: actions/upload-artifact@v4 | |
with: | |
name: snap | |
path: ${{ steps.snapcraft.outputs.snap }} | |
- name: Verify snapcraft snap | |
run: | | |
sudo snap install --dangerous --classic ${{ steps.snapcraft.outputs.snap }} | |
kernel-plugins: | |
runs-on: [spread-installed] | |
needs: [snap-build] | |
strategy: | |
fail-fast: false | |
matrix: | |
type: [craft-parts, v2] | |
steps: | |
- name: Cleanup job workspace | |
run: | | |
rm -rf "${{ github.workspace }}" | |
mkdir "${{ github.workspace }}" | |
- name: Checkout snapcraft | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Download snap artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: snap | |
path: tests | |
- name: Kernel plugin test | |
run: | | |
spread google:ubuntu-22.04-64:tests/spread/plugins/${{ matrix.type }}/kernel | |
remote-build-core24: | |
runs-on: [spread-installed] | |
needs: [snap-build] | |
strategy: | |
fail-fast: false | |
matrix: | |
system: | |
- ubuntu-24.04-64 | |
steps: | |
- name: Cleanup job workspace | |
run: | | |
rm -rf "${{ github.workspace }}" | |
mkdir "${{ github.workspace }}" | |
- name: Checkout snapcraft | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Download snap artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: snap | |
path: tests | |
- name: remote-build test | |
env: | |
LAUNCHPAD_TOKEN: "${{ secrets.LAUNCHPAD_TOKEN }}" | |
run: | | |
spread google:${{ matrix.system }}:tests/spread/core24/remote-build | |
remote-build: | |
runs-on: [spread-installed] | |
needs: [snap-build] | |
strategy: | |
fail-fast: false | |
matrix: | |
system: | |
- ubuntu-22.04-64 | |
- fedora-39-64 | |
steps: | |
- name: Cleanup job workspace | |
run: | | |
rm -rf "${{ github.workspace }}" | |
mkdir "${{ github.workspace }}" | |
- name: Checkout snapcraft | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
submodules: true | |
- name: Download snap artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: snap | |
path: tests | |
- name: remote-build test | |
env: | |
LAUNCHPAD_TOKEN: "${{ secrets.LAUNCHPAD_TOKEN }}" | |
run: | | |
spread google:${{ matrix.system }}:tests/spread/general/remote-build |