-
Notifications
You must be signed in to change notification settings - Fork 270
47 lines (38 loc) · 1.09 KB
/
s3-bucket.yml
File metadata and controls
47 lines (38 loc) · 1.09 KB
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
name: S3 Bucket Test
on:
pull_request:
push:
branches:
- master
workflow_dispatch:
jobs:
test-on-os-node-matrix:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
node: [20, 'lts/*']
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
S3_BUCKET: ${{ secrets.S3_BUCKET }}
name: Test S3 Bucket - Node ${{ matrix.node }} on ${{ matrix.os }}
steps:
- name: Checkout ${{ github.ref }}
uses: actions/checkout@v6
- name: Setup node ${{ matrix.node }}
uses: actions/setup-node@v6
with:
node-version: ${{ matrix.node }}
- name: NPM Install
run: npm install
- name: Show Environment Info
run: |
printenv
node --version
npm --version
- name: Run S3 Tests (against ${{ env.S3_BUCKET }} bucket)
run: |
npm run bucket ${{ env.S3_BUCKET }}
npm run test:s3
if: ${{ env.S3_BUCKET != '' }}