Skip to content

feat!: Enable multiarch snap builds for deployment on non-amd64 machines #4

feat!: Enable multiarch snap builds for deployment on non-amd64 machines

feat!: Enable multiarch snap builds for deployment on non-amd64 machines #4

Workflow file for this run

# Copyright 2023 Canonical Ltd.
# See LICENSE file for licensing details.
name: spack snap tests
on:
workflow_call:
pull_request:
jobs:
inclusive-naming-check:
name: Inclusive naming check
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: woke
uses: get-woke/woke-action@v0
with:
# Cause the check to fail on any broke rules
fail-on-error: true
lint:
name: Lint
runs-on: ubuntu-22.04
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: python3 -m pip install tox
- name: Run linters
run: tox -e lint
unit-test:
name: Unit tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: python3 -m pip install tox
- name: Build snap locally
uses: snapcore/action-build@v1
id: snapcraft
- name: Setup LXD
uses: canonical/[email protected]
- name: Run tests
run: tox -e unit