Skip to content

Commit

Permalink
chore: try format yaml files (#3364)
Browse files Browse the repository at this point in the history
  • Loading branch information
suyanhanx authored Oct 23, 2023
1 parent 429972b commit ad031b8
Show file tree
Hide file tree
Showing 38 changed files with 340 additions and 320 deletions.
6 changes: 3 additions & 3 deletions .asf.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ github:
whatever: Just a placeholder to make it take effects

notifications:
commits: [email protected]
issues: [email protected]
commits: [email protected]
issues: [email protected]
pullrequests: [email protected]
discussions: [email protected]
discussions: [email protected]

publish:
whoami: gh-pages
38 changes: 19 additions & 19 deletions .github/actions/behavior_test_binding_java/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup
shell: bash
run: |
mkdir -p ./dynamic_test_binding_java &&
cat <<EOF >./dynamic_test_binding_java/action.yml
runs:
using: composite
steps:
- name: Setup Test
uses: ./.github/services/${{ inputs.service }}/${{ inputs.setup }}
- name: Run Test Binding Java
shell: bash
working-directory: bindings/java
run: ./mvnw test -Dtest="behavior.*Test" -Dcargo-build.features=${{ inputs.feature }}
env:
OPENDAL_TEST: ${{ inputs.service }}
EOF
- name: Run
uses: ./dynamic_test_binding_java
- name: Setup
shell: bash
run: |
mkdir -p ./dynamic_test_binding_java &&
cat <<EOF >./dynamic_test_binding_java/action.yml
runs:
using: composite
steps:
- name: Setup Test
uses: ./.github/services/${{ inputs.service }}/${{ inputs.setup }}
- name: Run Test Binding Java
shell: bash
working-directory: bindings/java
run: ./mvnw test -Dtest="behavior.*Test" -Dcargo-build.features=${{ inputs.feature }}
env:
OPENDAL_TEST: ${{ inputs.service }}
EOF
- name: Run
uses: ./dynamic_test_binding_java
38 changes: 19 additions & 19 deletions .github/actions/behavior_test_core/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,22 +28,22 @@ inputs:
runs:
using: "composite"
steps:
- name: Setup
shell: bash
run: |
mkdir -p ./dynamic_test_core &&
cat <<EOF >./dynamic_test_core/action.yml
runs:
using: composite
steps:
- name: Setup Test Core
uses: ./.github/services/${{ inputs.service }}/${{ inputs.setup }}
- name: Run Test Core
shell: bash
working-directory: core
run: cargo nextest run behavior --features ${{ inputs.feature }}
env:
OPENDAL_TEST: ${{ inputs.service }}
EOF
- name: Run
uses: ./dynamic_test_core
- name: Setup
shell: bash
run: |
mkdir -p ./dynamic_test_core &&
cat <<EOF >./dynamic_test_core/action.yml
runs:
using: composite
steps:
- name: Setup Test Core
uses: ./.github/services/${{ inputs.service }}/${{ inputs.setup }}
- name: Run Test Core
shell: bash
working-directory: core
run: cargo nextest run behavior --features ${{ inputs.feature }}
env:
OPENDAL_TEST: ${{ inputs.service }}
EOF
- name: Run
uses: ./dynamic_test_core
4 changes: 2 additions & 2 deletions .github/actions/setup-ocaml/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
# specific language governing permissions and limitations
# under the License.

name: Setup OCaml
name: Setup OCaml
description: 'Prepare OCaml Build Environment'
inputs:
need-depext:
Expand All @@ -38,4 +38,4 @@ runs:
run: opam env | tr '\n' ' ' >> $GITHUB_ENV
- name: Add Opam switch to PATH
shell: bash
run: opam var bin >> $GITHUB_PATH
run: opam var bin >> $GITHUB_PATH
4 changes: 2 additions & 2 deletions .github/actions/setup/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ runs:
if: inputs.need-protoc == 'true'
uses: arduino/setup-protoc@v2
with:
version: "23.4"
repo-token: ${{ inputs.github-token }}
version: "23.4"
repo-token: ${{ inputs.github-token }}

- name: Cache nextest on linux
id: cache-nextest
Expand Down
14 changes: 7 additions & 7 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@
# under the License.

releases-note/feat:
- '^feat'
- '^feat'
releases-note/refactor:
- '^refactor'
- '^refactor'
releases-note/fix:
- '^fix'
- '^fix'
releases-note/docs:
- '^doc'
- '^doc'
releases-note/ci:
- '^ci'
- '^ci'
releases-note/build:
- '^build'
- '^build'
releases-note/chore:
- '^chore'
- '^chore'
22 changes: 11 additions & 11 deletions .github/services/etcd/etcd-cluster-tls/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ name: etcd-cluster-tls
description: 'Behavior test for etcd-cluster-tls'

runs:
using: "composite"
steps:
using: "composite"
steps:
- name: Copy Etcd Certificate Files
shell: bash
working-directory: fixtures
Expand All @@ -34,12 +34,12 @@ runs:
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_ETCD_ENDPOINTS=https://127.0.0.1:23790,https://127.0.0.1:23791,https://127.0.0.1:23792
OPENDAL_ETCD_ROOT=/tmp/opendal
OPENDAL_ETCD_USERNAME=root
OPENDAL_ETCD_PASSWORD=opendal
OPENDAL_ETCD_CA_PATH=/tmp/etcd/ca.pem
OPENDAL_ETCD_CERT_PATH=/tmp/etcd/client.pem
OPENDAL_ETCD_KEY_PATH=/tmp/etcd/client-key.pem
EOF
cat << EOF >> $GITHUB_ENV
OPENDAL_ETCD_ENDPOINTS=https://127.0.0.1:23790,https://127.0.0.1:23791,https://127.0.0.1:23792
OPENDAL_ETCD_ROOT=/tmp/opendal
OPENDAL_ETCD_USERNAME=root
OPENDAL_ETCD_PASSWORD=opendal
OPENDAL_ETCD_CA_PATH=/tmp/etcd/ca.pem
OPENDAL_ETCD_CERT_PATH=/tmp/etcd/client.pem
OPENDAL_ETCD_KEY_PATH=/tmp/etcd/client-key.pem
EOF
12 changes: 6 additions & 6 deletions .github/services/etcd/etcd-cluster/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ name: etcd-cluster
description: 'Behavior test for etcd-cluster'

runs:
using: "composite"
steps:
using: "composite"
steps:
- name: Setup etcd cluster
shell: bash
working-directory: fixtures/etcd
run: docker-compose -f docker-compose-cluster.yml up -d
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_ETCD_ENDPOINTS=http://127.0.0.1:23790,http://127.0.0.1:23791,http://127.0.0.1:23792
OPENDAL_ETCD_ROOT=/tmp/opendal
EOF
cat << EOF >> $GITHUB_ENV
OPENDAL_ETCD_ENDPOINTS=http://127.0.0.1:23790,http://127.0.0.1:23791,http://127.0.0.1:23792
OPENDAL_ETCD_ROOT=/tmp/opendal
EOF
12 changes: 6 additions & 6 deletions .github/services/etcd/etcd/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ name: etcd
description: 'Behavior test for etcd stanlone'

runs:
using: "composite"
steps:
using: "composite"
steps:
- name: Setup etcd cluster
shell: bash
working-directory: fixtures/etcd
run: docker-compose -f docker-compose-stanlone.yml up -d
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_ETCD_ENDPOINTS=http://127.0.0.1:2379
OPENDAL_ETCD_ROOT=/tmp/opendal
EOF
cat << EOF >> $GITHUB_ENV
OPENDAL_ETCD_ENDPOINTS=http://127.0.0.1:2379
OPENDAL_ETCD_ROOT=/tmp/opendal
EOF
12 changes: 6 additions & 6 deletions .github/services/fs/local_fs/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ name: local_fs
description: 'Behavior test for local fs'

runs:
using: "composite"
steps:
- name: Setup
shell: bash
run: |
echo "OPENDAL_FS_ROOT=${{ runner.temp }}/" >> $GITHUB_ENV
using: "composite"
steps:
- name: Setup
shell: bash
run: |
echo "OPENDAL_FS_ROOT=${{ runner.temp }}/" >> $GITHUB_ENV
12 changes: 6 additions & 6 deletions .github/services/http/caddy/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ name: caddy
description: 'Behavior test for http service in caddy'

runs:
using: "composite"
steps:
using: "composite"
steps:
- name: Setup etcd cluster
shell: bash
working-directory: fixtures/http
run: docker-compose -f docker-compose-caddy.yml up -d
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_HTTP_ENDPOINT=http://127.0.0.1:8080
OPENDAL_DISABLE_RANDOM_ROOT=true
EOF
cat << EOF >> $GITHUB_ENV
OPENDAL_HTTP_ENDPOINT=http://127.0.0.1:8080
OPENDAL_DISABLE_RANDOM_ROOT=true
EOF
12 changes: 6 additions & 6 deletions .github/services/http/nginx/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,16 @@ name: nginx
description: 'Behavior test for http service in nginx'

runs:
using: "composite"
steps:
using: "composite"
steps:
- name: Setup etcd cluster
shell: bash
working-directory: fixtures/http
run: docker-compose -f docker-compose-nginx.yml up -d
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_HTTP_ENDPOINT=http://127.0.0.1:8080
OPENDAL_DISABLE_RANDOM_ROOT=true
EOF
cat << EOF >> $GITHUB_ENV
OPENDAL_HTTP_ENDPOINT=http://127.0.0.1:8080
OPENDAL_DISABLE_RANDOM_ROOT=true
EOF
28 changes: 14 additions & 14 deletions .github/services/mongodb/mongodb_with_basic_auth/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ name: mongodb_with_basic_auth
description: 'Behavior test for mongodb with basic auth'

runs:
using: "composite"
steps:
- name: Setup MongoDB Server
shell: bash
working-directory: fixtures/mongodb
run: docker-compose -f docker-compose-basic-auth.yml up -d
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_MONGODB_CONNECTION_STRING=mongodb://root:[email protected]:27017/admin
OPENDAL_MONGODB_DATABASE=demo
OPENDAL_MONGODB_COLLECTION=demo
EOF
using: "composite"
steps:
- name: Setup MongoDB Server
shell: bash
working-directory: fixtures/mongodb
run: docker-compose -f docker-compose-basic-auth.yml up -d
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_MONGODB_CONNECTION_STRING=mongodb://root:[email protected]:27017/admin
OPENDAL_MONGODB_DATABASE=demo
OPENDAL_MONGODB_COLLECTION=demo
EOF
28 changes: 14 additions & 14 deletions .github/services/mongodb/mongodb_with_no_auth/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ name: mongodb_with_no_auth
description: 'Behavior test for mongodb with no auth'

runs:
using: "composite"
steps:
- name: Setup MongoDB Server
shell: bash
working-directory: fixtures/mongodb
run: docker-compose -f docker-compose-no-auth.yml up -d
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_MONGODB_CONNECTION_STRING=mongodb://127.0.0.1:27017
OPENDAL_MONGODB_DATABASE=demo
OPENDAL_MONGODB_COLLECTION=demo
EOF
using: "composite"
steps:
- name: Setup MongoDB Server
shell: bash
working-directory: fixtures/mongodb
run: docker-compose -f docker-compose-no-auth.yml up -d
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_MONGODB_CONNECTION_STRING=mongodb://127.0.0.1:27017
OPENDAL_MONGODB_DATABASE=demo
OPENDAL_MONGODB_COLLECTION=demo
EOF
30 changes: 15 additions & 15 deletions .github/services/mysql/mysql/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,18 @@ name: mysql
description: 'Behavior test for mysql'

runs:
using: "composite"
steps:
- name: Setup MySQL Server
shell: bash
working-directory: fixtures/mysql
run: docker-compose -f docker-compose.yml up -d
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_MYSQL_CONNECTION_STRING=mysql://root:password@localhost:3306/testdb
OPENDAL_MYSQL_TABLE=data
OPENDAL_MYSQL_KEY_FIELD=key
OPENDAL_MYSQL_VALUE_FIELD=data
EOF
using: "composite"
steps:
- name: Setup MySQL Server
shell: bash
working-directory: fixtures/mysql
run: docker-compose -f docker-compose.yml up -d
- name: Setup
shell: bash
run: |
cat << EOF >> $GITHUB_ENV
OPENDAL_MYSQL_CONNECTION_STRING=mysql://root:password@localhost:3306/testdb
OPENDAL_MYSQL_TABLE=data
OPENDAL_MYSQL_KEY_FIELD=key
OPENDAL_MYSQL_VALUE_FIELD=data
EOF
Loading

0 comments on commit ad031b8

Please sign in to comment.