-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add github action cache service support (#1111)
* feat: Add github action cache service support Signed-off-by: Xuanwo <[email protected]> * Fix typo Signed-off-by: Xuanwo <[email protected]> * Fix build Signed-off-by: Xuanwo <[email protected]> * Set env Signed-off-by: Xuanwo <[email protected]> * Set version for cache api Signed-off-by: Xuanwo <[email protected]> * Fix cache_id not found Signed-off-by: Xuanwo <[email protected]> * Ignore conflict errors Signed-off-by: Xuanwo <[email protected]> * make sure path encoded Signed-off-by: Xuanwo <[email protected]> * Add preview Signed-off-by: Xuanwo <[email protected]> * Fix no content Signed-off-by: Xuanwo <[email protected]> * Make test easier Signed-off-by: Xuanwo <[email protected]> * Fix write file Signed-off-by: Xuanwo <[email protected]> * Add github token Signed-off-by: Xuanwo <[email protected]> * Add opendal user agent Signed-off-by: Xuanwo <[email protected]> * Add version in user agent Signed-off-by: Xuanwo <[email protected]> * Rename Signed-off-by: Xuanwo <[email protected]> * Only test create file Signed-off-by: Xuanwo <[email protected]> * Fix reserve size Signed-off-by: Xuanwo <[email protected]> * Add operation Signed-off-by: Xuanwo <[email protected]> * Fix operation not with Signed-off-by: Xuanwo <[email protected]> * Fix typo Signed-off-by: Xuanwo <[email protected]> * For test Signed-off-by: Xuanwo <[email protected]> * Gogo Signed-off-by: Xuanwo <[email protected]> * Try again Signed-off-by: Xuanwo <[email protected]> * Try again Signed-off-by: Xuanwo <[email protected]> * ENable create simulation Signed-off-by: Xuanwo <[email protected]> * Run full test Signed-off-by: Xuanwo <[email protected]> * Fix typo Signed-off-by: Xuanwo <[email protected]> * Return unsupported for read with suffix Signed-off-by: Xuanwo <[email protected]> * Remove debug log Signed-off-by: Xuanwo <[email protected]> * Revert "Make test easier" This reverts commit 94fcff2. * Remove token Signed-off-by: Xuanwo <[email protected]> Signed-off-by: Xuanwo <[email protected]>
- Loading branch information
Showing
11 changed files
with
718 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: Service Test Ghac | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
branches: | ||
- main | ||
paths-ignore: | ||
- "docs/**" | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }}-${{ github.event_name }} | ||
cancel-in-progress: true | ||
|
||
jobs: | ||
ghac: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: Swatinem/rust-cache@v2 | ||
|
||
- name: Configure Cache Env | ||
uses: actions/github-script@v6 | ||
with: | ||
script: | | ||
core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); | ||
core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); | ||
- name: Test | ||
shell: bash | ||
run: cargo test ghac --features compress -- --nocapture | ||
env: | ||
RUST_BACKTRACE: full | ||
RUST_LOG: debug | ||
OPENDAL_GHAC_TEST: ${{ secrets.OPENDAL_GHAC_TEST }} | ||
OPENDAL_GHAC_ENABLE_CREATE_SIMULATION: true | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
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
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
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
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
Oops, something went wrong.
707ee5b
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Deploy preview for opendal ready!
✅ Preview
https://opendal-1201f0wuo-databend.vercel.app
Built with commit 707ee5b.
This pull request is being automatically deployed with vercel-action