Archived
1
0
This repository has been archived on 2024-09-09. You can view files and clone it, but cannot push or open issues or pull requests.
code-server/.github/workflows/scripts.yml

54 lines
1.2 KiB
YAML
Raw Normal View History

2021-07-13 19:22:00 +02:00
name: Script unit tests
on:
push:
branches:
- main
paths:
- "**.sh"
- "**.bats"
2021-07-13 19:22:00 +02:00
pull_request:
branches:
- main
paths:
- "**.sh"
- "**.bats"
2021-07-13 19:22:00 +02:00
permissions:
actions: none
checks: none
contents: read
deployments: none
issues: none
packages: none
pull-requests: none
repository-projects: none
security-events: none
statuses: none
# Cancel in-progress runs for pull requests when developers push
# additional changes, and serialize builds in branches.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-concurrency-to-cancel-any-in-progress-job-or-run
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
2021-07-13 19:22:00 +02:00
jobs:
test:
name: Run script unit tests
runs-on: ubuntu-latest
# This runs on Alpine to make sure we're testing with actual sh.
container: "alpine:3.16"
2021-07-13 19:22:00 +02:00
steps:
- name: Checkout repo
uses: actions/checkout@v3
2021-07-13 19:22:00 +02:00
2021-07-13 19:24:30 +02:00
- name: Install test utilities
run: apk add bats checkbashisms
- name: Check Bashisms
run: checkbashisms ./install.sh
2021-07-13 19:22:00 +02:00
- name: Run script unit tests
run: ./ci/dev/test-scripts.sh