Skip setting the hostname for smoke tests since we don't need it #5
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: Smoke Test | |
on: | |
workflow_dispatch: | |
pull_request: | |
schedule: | |
- cron: '0 0 * * *' | |
push: | |
branches: [ master ] | |
jobs: | |
test: | |
strategy: | |
matrix: | |
distro: ['ubuntu:latest', 'fedora:latest', 'debian:latest'] | |
fail-fast: false | |
runs-on: ubuntu-latest | |
container: ${{ matrix.distro }} | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v3 | |
with: | |
go-version: 1.21 | |
- name: Debian-based Setup | |
if: ${{ matrix.distro == 'ubuntu:latest' || matrix.distro == 'debian:latest' }} | |
run: | | |
# Install our dependencies | |
apt-get update | |
apt-get install -y zsh tmux fish | |
# Work around a weird bug where zsh on ubuntu actions gives that directory 0777 which makes zsh refuse to start | |
chmod 0755 -R /usr/share/zsh/ | |
- name: Fedora-based Setup | |
if: ${{ matrix.distro == 'fedora:latest' }} | |
run: | | |
# Install our dependencies | |
sudo dnf update -y | |
sudo dnf install -y zsh tmux fish | |
- 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: | |
# limit-access-to-actor: true |