mirror of
https://github.com/rcaloras/bash-preexec.git
synced 2026-11-03 14:39:43 -09:00
Use bats-core/bats-action to set up Bats (#176)
This is the "official" (under the bats-core organization) GitHub Action for setting up Bats in a workflow. This removes the need to manually install the `bats` package. Also, update to the latest actions/checkout version and use the latest Ubuntu image.
This commit is contained in:
parent
b73ed5f7f9
commit
c6b5d3da3f
1 changed files with 3 additions and 5 deletions
8
.github/workflows/bats.yaml
vendored
8
.github/workflows/bats.yaml
vendored
|
|
@ -3,13 +3,11 @@ on: [push, pull_request]
|
|||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-24.04
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Install Bats
|
||||
run: |
|
||||
sudo apt-get update
|
||||
sudo apt-get install --assume-yes bats
|
||||
uses: bats-core/bats-action@3.0.1
|
||||
- name: Check out repository
|
||||
uses: actions/checkout@v2
|
||||
uses: actions/checkout@v5
|
||||
- name: Run tests
|
||||
run: bats test
|
||||
|
|
|
|||
Loading…
Reference in a new issue