This repository has been archived by the owner on Oct 22, 2023. It is now read-only.
Update actions/checkout action to v4.1.0 #806
Workflow file for this run
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: Pipeline | |
on: [push, pull_request] | |
jobs: | |
build: | |
name: "Lint and Test" | |
runs-on: ubuntu-latest | |
env: | |
TERM: xterm-256color | |
BATECT_CACHE_TYPE: directory | |
BATECT_ENABLE_TELEMETRY: true | |
DOCKER_BUILDKIT: 1 | |
steps: | |
- name: Check out code | |
uses: actions/checkout@v4.1.0 | |
with: | |
fetch-depth: 0 | |
- name: Fix tag reference (workaround for https://github.com/actions/checkout/issues/290) | |
run: git fetch -f origin ${{ github.ref }}:${{ github.ref }} | |
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'batect/batect-zsh-completion' | |
- name: Validate Batect wrapper scripts | |
uses: batect/batect-wrapper-validation-action@v0.4.0 | |
- name: Cache Batect | |
uses: actions/cache@v3.3.2 | |
with: | |
path: ~/.batect/cache | |
key: batect-${{ hashFiles('batect') }} | |
- name: Check formatting | |
run: ./batect check-format | |
- name: Lint code | |
run: ./batect lint | |
- name: Test | |
run: ./batect test | |
- name: Check release environment | |
run: ./batect check-release-env | |
- name: Validate release | |
run: ./batect validate-release | |
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/') && github.repository == 'batect/batect-zsh-completion' |