-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7370515
commit dbedb21
Showing
1 changed file
with
37 additions
and
0 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Test | ||
|
||
on: [push] | ||
|
||
jobs: | ||
check: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- run: docker build . | ||
|
||
test: | ||
needs: check | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Basic usage | ||
uses: ./ | ||
with: | ||
connection-string: ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }} | ||
container: "azblob-generate-static-index" | ||
prefix: "some" | ||
overwrite: "true" | ||
|
||
- name: Check if 'index.html' is correct | ||
run: | | ||
az storage blob download \ | ||
--connection-string ${{ secrets.AZURE_STORAGE_CONNECTION_STRING }} \ | ||
--container-name azblob-generate-static-index \ | ||
--name some/index.html \ | ||
--file index.html | ||
grep -q 'hello.txt' index.html | ||
grep -q 'world.txt' index.html |