-
Notifications
You must be signed in to change notification settings - Fork 2
60 lines (51 loc) · 1.46 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Build
on:
schedule:
- cron: "21 2 * * 2"
push:
branches:
- main
pull_request:
branches:
- main
jobs:
run-shellcheck:
name: Validate entrypoint.sh
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- name: install shellcheck
run: |
sudo apt-get update
sudo apt-get install -y shellcheck
- run: shellcheck entrypoint.sh
run-tests:
strategy:
matrix:
scheme:
- http
- https
port:
- 4443
- 5001
name: Test the action
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.1.1
- uses: ./
with:
data: testdata
public-host: "storage.gcs.127.0.0.1.nip.io:${{ matrix.port }}"
external-url: "${{ matrix.scheme }}://storage.gcs.127.0.0.1.nip.io:${{ matrix.port }}"
scheme: ${{ matrix.scheme }}
port: ${{ matrix.port }}
debug: 1
- name: list buckets and objects with curl
shell: bash
run: |
echo "List of buckets:"
curl --silent --fail --insecure ${FAKE_GCS_SERVER_SCHEME}://storage.gcs.127.0.0.1.nip.io:${{ matrix.port }}/storage/v1/b
echo "Files in the bucket:"
curl --silent --fail --insecure ${FAKE_GCS_SERVER_SCHEME}://storage.gcs.127.0.0.1.nip.io:${{ matrix.port }}/storage/v1/b/some-bucket/o
env:
FAKE_GCS_SERVER_SCHEME: ${{ matrix.scheme }}