From 5a1e963548b30ee6e29d6b438a3d0fdbe6abc790 Mon Sep 17 00:00:00 2001 From: Aloxaf Date: Wed, 25 Sep 2024 18:12:01 +0800 Subject: [PATCH] ci: test on archlinux --- .github/workflows/linux.yaml | 20 +++++++++++++++----- .github/workflows/macos.yaml | 2 +- .github/workflows/zsh.yaml | 2 +- 3 files changed, 17 insertions(+), 7 deletions(-) diff --git a/.github/workflows/linux.yaml b/.github/workflows/linux.yaml index b6309f2..595f720 100644 --- a/.github/workflows/linux.yaml +++ b/.github/workflows/linux.yaml @@ -1,4 +1,4 @@ -name: test on linux +name: Linux compability on: push: @@ -10,18 +10,28 @@ on: jobs: test: - runs-on: ${{ matrix.os }} + runs-on: ubuntu-latest strategy: + fail-fast: false matrix: - os: [ubuntu-latest] + os: ["ubuntu:latest", "archlinux:latest"] + container: + image: ${{ matrix.os }} steps: - name: checkout uses: actions/checkout@v1 with: fetch-depth: 1 - - name: install zsh - run: sudo apt-get install -y zsh + - name: install dependencies + run: | + if [ "${{ matrix.os }}" = "ubuntu:latest" ]; then + apt-get update + apt-get install -y zsh git curl build-essential autoconf libncurses-dev + elif [ "${{ matrix.os }}" = "archlinux:latest" ]; then + pacman -Syu --noconfirm + pacman -S --noconfirm zsh base-devel git + fi - name: test completion run: cd test && zsh -f runtests.zsh fzftab.ztst diff --git a/.github/workflows/macos.yaml b/.github/workflows/macos.yaml index e504cfa..a0ade1c 100644 --- a/.github/workflows/macos.yaml +++ b/.github/workflows/macos.yaml @@ -1,4 +1,4 @@ -name: test on macOS +name: macOS compability on: push: diff --git a/.github/workflows/zsh.yaml b/.github/workflows/zsh.yaml index 6248522..e4117cf 100644 --- a/.github/workflows/zsh.yaml +++ b/.github/workflows/zsh.yaml @@ -1,4 +1,4 @@ -name: test on different zsh versions +name: Zsh compability on: push: