|
| 1 | +# Licensed to the Apache Software Foundation (ASF) under one |
| 2 | +# or more contributor license agreements. See the NOTICE file |
| 3 | +# distributed with this work for additional information |
| 4 | +# regarding copyright ownership. The ASF licenses this file |
| 5 | +# to you under the Apache License, Version 2.0 (the |
| 6 | +# "License"); you may not use this file except in compliance |
| 7 | +# with the License. You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, |
| 12 | +# software distributed under the License is distributed on an |
| 13 | +# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY |
| 14 | +# KIND, either express or implied. See the License for the |
| 15 | +# specific language governing permissions and limitations |
| 16 | +# under the License. |
| 17 | + |
| 18 | +name: Test Service GHAC v2 |
| 19 | +description: 'Test GHAC v2 service' |
| 20 | +inputs: |
| 21 | + github_token: |
| 22 | + description: 'A Github token' |
| 23 | + required: true |
| 24 | + |
| 25 | +runs: |
| 26 | + using: "composite" |
| 27 | + steps: |
| 28 | + - name: Setup Rust toolchain |
| 29 | + uses: ./.github/actions/setup |
| 30 | + with: |
| 31 | + need-nextest: true |
| 32 | + |
| 33 | + - name: Configure Cache Env |
| 34 | + uses: actions/github-script@v9 |
| 35 | + with: |
| 36 | + script: | |
| 37 | + core.exportVariable('ACTIONS_RESULTS_URL', process.env.ACTIONS_RESULTS_URL || ''); |
| 38 | + core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); |
| 39 | + core.exportVariable('ACTIONS_CACHE_SERVICE_V2', 'on'); |
| 40 | +
|
| 41 | + - name: Test |
| 42 | + shell: bash |
| 43 | + working-directory: core |
| 44 | + run: cargo test behavior --features tests,services-ghac |
| 45 | + env: |
| 46 | + OPENDAL_TEST: ghac |
| 47 | + GITHUB_TOKEN: ${{ inputs.github_token }} |
0 commit comments