hishtory/.github/workflows/distro-smoke-test.yml

60 lines
1.8 KiB
YAML
Raw Normal View History

name: Smoke Test
on:
workflow_dispatch:
pull_request:
schedule:
- cron: '0 0 * * *'
push:
branches: [ master ]
jobs:
test:
strategy:
matrix:
2024-02-10 03:56:49 +01:00
distro: ['ubuntu:latest', 'fedora:latest', 'debian:latest', 'opensuse/leap:latest', 'archlinux:latest']
fail-fast: false
runs-on: ubuntu-latest
container: ${{ matrix.distro }}
steps:
- name: Debian-based Setup
if: ${{ matrix.distro == 'ubuntu:latest' || matrix.distro == 'debian:latest' }}
run: |
# Install our dependencies
2024-02-10 03:27:26 +01:00
apt-get update
2024-02-10 03:43:42 +01:00
apt-get install -y zsh tmux fish ca-certificates make build-essential gcc psmisc
# Work around a weird bug where zsh on ubuntu actions gives that directory 0777 which makes zsh refuse to start
2024-02-10 03:27:26 +01:00
chmod 0755 -R /usr/share/zsh/
2024-02-10 03:52:38 +01:00
- name: DNF-based Setup
if: ${{ matrix.distro == 'fedora:latest' || matrix.distro == 'opensuse/leap:latest' || matrix.distro == 'rockylinux:latest' }}
run: |
# Install our dependencies
2024-02-10 03:27:26 +01:00
sudo dnf update -y
2024-02-10 03:43:42 +01:00
sudo dnf install -y zsh tmux fish make gcc psmisc
2024-02-10 03:55:24 +01:00
- name: Arch-based Setup
if: ${{ matrix.distro == 'archlinux:latest' }}
run: |
# Install our dependencies
sudo pacman install -y zsh tmux fish make gcc psmisc
2024-02-10 03:56:49 +01:00
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v3
with:
go-version: 1.21
- name: Go test
env:
DD_API_KEY: ${{ secrets.DD_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
go install gotest.tools/gotestsum@bc98120
make ftest FILTER=TestInstallViaPythonScriptFromHead
# - name: Setup tmate session
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# with:
2024-02-10 03:25:41 +01:00
# limit-access-to-actor: true