[chore] Add "list child users" code examples (#121) #550
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: CI | |
on: | |
push: | |
branches: [master] | |
pull_request: ~ | |
workflow_dispatch: ~ | |
jobs: | |
shell: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Run sh-checker | |
uses: luizm/action-sh-checker@master | |
env: | |
SHFMT_OPTS: -i 2 -d | |
SHELLCHECK_OPTS: -e SC2148,SC2034 | |
csharp: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install C# dependencies | |
run: make install-csharp | |
- name: Lint project | |
run: make lint-csharp | |
go: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- uses: actions/setup-go@v3 | |
with: | |
go-version: 1.19 | |
- name: Install Go dependencies | |
run: make install-go | |
# curl install must occur in the same step as the linter to run properly on CI | |
- name: Lint project | |
run: | | |
curl -sSfL https://raw.githubusercontent.com/golangci/golangci-lint/master/install.sh | sh -s -- -b $(go env GOPATH)/bin | |
make lint-go | |
java: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install Java dependencies | |
run: make install-java | |
- name: Lint project | |
run: make lint-java | |
node: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: make install-node | |
- name: Lint project | |
run: make lint-node | |
- name: Check formatting | |
run: make format-node-check | |
php: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install dependencies | |
run: make install-php | |
- name: Lint project | |
run: make lint-php | |
python: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Install Python dependencies | |
run: make install-python | |
- name: Lint project | |
run: make lint-python | |
- name: Check formatting | |
run: make format-python-check | |
ruby: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: '3.2' | |
rubygems: '3.0.0' | |
bundler-cache: true | |
- name: Install Ruby dependencies | |
run: make install-ruby | |
- name: Lint project | |
run: make lint-ruby | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v3 | |
- name: Check for current dirs in docs | |
run: ./test/ensure-current-dirs-exist.sh |