mirror of
https://github.com/coder/code-server.git
synced 2024-12-05 07:13:06 +08:00
35 lines
665 B
YAML
35 lines
665 B
YAML
name: Script unit tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "**.sh"
|
|
- "**.bats"
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
paths:
|
|
- "**.sh"
|
|
- "**.bats"
|
|
|
|
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.14"
|
|
steps:
|
|
- name: Checkout repo
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install test utilities
|
|
run: apk add bats checkbashisms
|
|
|
|
- name: Check Bashisms
|
|
run: checkbashisms ./install.sh
|
|
|
|
- name: Run script unit tests
|
|
run: ./ci/dev/test-scripts.sh
|