Skip to content

github.com/golang/mock => go.uber.org/mock #261

github.com/golang/mock => go.uber.org/mock

github.com/golang/mock => go.uber.org/mock #261

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ '*' ]
workflow_dispatch:
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
name: Check out repository
- name: Set up mise
uses: jdx/mise-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cache_key_prefix: mise-v0-stable
- run: mise run lint
test:
runs-on: ubuntu-latest
name: Unit Test
steps:
- uses: actions/checkout@v4
name: Check out repository
- name: Set up mise
uses: jdx/mise-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cache_key_prefix: mise-v0-stable
- name: Build tmux-fastcopy
run: mise run build
- name: Test
run: mise run cover:unit
- name: Coverage
uses: codecov/codecov-action@v5
with:
files: ./cover.out
integration:
runs-on: ubuntu-latest
name: Integration Test / Tmux ${{ matrix.tmux-version }}
strategy:
matrix:
tmux-version: ["3.3a", "3.2a", "3.1c", "3.0a", "2.9a", "2.8", "2.7"]
steps:
- uses: actions/checkout@v4
name: Check out repository
- name: Set up mise
uses: jdx/mise-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
cache_key_prefix: mise-v0-stable
- name: Checkout Tmux
uses: actions/checkout@v4
with:
repository: tmux/tmux
ref: ${{ matrix.tmux-version }}
path: src/tmux
- name: Load cached Tmux
uses: actions/cache@v4
with:
path: ~/.local
key: ${{ runner.os }}-tmux-${{ matrix.tmux-version }}
- name: Download and install dependencies
run: |
sudo apt-get install -y libevent-dev libncurses-dev
- name: Install Tmux
working-directory: src/tmux
run: |
if [[ ! -x "$HOME/.local/bin/tmux" ]]; then
sh autogen.sh
./configure --prefix="$HOME/.local"
make install
else
echo "Using cached tmux"
fi
- name: Build tmux-fastcopy
run: mise run build
- name: Integration test
run: mise run cover:integration
- name: Upload coverage
uses: codecov/codecov-action@v5
with:
files: ./cover.integration.out