Skip to content

Commit 7a84246

Browse files
committed
take a stab
1 parent d308c5f commit 7a84246

File tree

2 files changed

+96
-55
lines changed

2 files changed

+96
-55
lines changed

.github/workflows/makefile.yml

Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,64 +1,64 @@
1-
name: Makefile CI
1+
# name: Makefile CI
22

3-
on:
4-
push:
5-
branches: [ "master" ]
6-
pull_request:
7-
branches: [ "master" ]
8-
schedule:
9-
- cron: '0 13 * * 1'
10-
jobs:
11-
test:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- name: Checkout
15-
uses: actions/checkout@v3
3+
# on:
4+
# push:
5+
# branches: [ "master" ]
6+
# pull_request:
7+
# branches: [ "master" ]
8+
# schedule:
9+
# - cron: '0 13 * * 1'
10+
# jobs:
11+
# test:
12+
# runs-on: ubuntu-latest
13+
# steps:
14+
# - name: Checkout
15+
# uses: actions/checkout@v3
1616

17-
- name: Setup Nodejs
18-
uses: actions/setup-node@v3
19-
with:
20-
node-version: 14
17+
# - name: Setup Nodejs
18+
# uses: actions/setup-node@v3
19+
# with:
20+
# node-version: 14
2121

22-
# see https://github.com/localstack/localstack/pull/6831
23-
# remove once no longer needed
24-
- name: Fix pyOpenSSL version
25-
run: pip install --upgrade pyOpenSSL
22+
# # see https://github.com/localstack/localstack/pull/6831
23+
# # remove once no longer needed
24+
# - name: Fix pyOpenSSL version
25+
# run: pip install --upgrade pyOpenSSL
2626

27-
- name: Install LocalStack
28-
run: pip install localstack awscli-local[ver1]
27+
# - name: Install LocalStack
28+
# run: pip install localstack awscli-local[ver1]
2929

30-
- name: Install Dependencies
31-
run: |
32-
pip install virtualenv
33-
pip install --upgrade pyopenssl
34-
npm install -g serverless
30+
# - name: Install Dependencies
31+
# run: |
32+
# pip install virtualenv
33+
# pip install --upgrade pyopenssl
34+
# npm install -g serverless
3535

36-
- name: Setup config
37-
run: |
38-
echo "Configuring git for codecommit sample"
39-
git config --global user.email "[email protected]"
40-
git config --global user.name "Localstack Pro-Samples"
36+
# - name: Setup config
37+
# run: |
38+
# echo "Configuring git for codecommit sample"
39+
# git config --global user.email "[email protected]"
40+
# git config --global user.name "Localstack Pro-Samples"
4141

42-
- name: Pull the latest docker image
43-
run: docker pull localstack/localstack-pro
42+
# - name: Pull the latest docker image
43+
# run: docker pull localstack/localstack-pro
4444

45-
- name: Execute tests
46-
env:
47-
LOCALSTACK_API_KEY: ${{ secrets.TEST_LOCALSTACK_API_KEY }}
48-
DNS_ADDRESS: 127.0.0.1
49-
DEBUG: 1
50-
timeout-minutes: 200
51-
run: make test-ci-all
45+
# - name: Execute tests
46+
# env:
47+
# LOCALSTACK_API_KEY: ${{ secrets.TEST_LOCALSTACK_API_KEY }}
48+
# DNS_ADDRESS: 127.0.0.1
49+
# DEBUG: 1
50+
# timeout-minutes: 200
51+
# run: make test-ci-all
5252

53-
- name: Send a Slack notification
54-
if: failure() || github.event_name != 'pull_request'
55-
uses: ravsamhq/notify-slack-action@v2
56-
with:
57-
status: ${{ job.status }}
58-
token: ${{ secrets.GITHUB_TOKEN }}
59-
notification_title: "{workflow} has {status_message}"
60-
message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
61-
footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Workflow run>"
62-
notify_when: "failure"
63-
env:
64-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
53+
# - name: Send a Slack notification
54+
# if: failure() || github.event_name != 'pull_request'
55+
# uses: ravsamhq/notify-slack-action@v2
56+
# with:
57+
# status: ${{ job.status }}
58+
# token: ${{ secrets.GITHUB_TOKEN }}
59+
# notification_title: "{workflow} has {status_message}"
60+
# message_format: "{emoji} *{workflow}* {status_message} in <{repo_url}|{repo}>"
61+
# footer: "Linked Repo <{repo_url}|{repo}> | <{run_url}|View Workflow run>"
62+
# notify_when: "failure"
63+
# env:
64+
# SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}

.github/workflows/test.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: "Run Tests for all samples"
2+
3+
on:
4+
push:
5+
branches: [ "master" ]
6+
pull_request:
7+
branches: [ "master" ]
8+
9+
jobs:
10+
prepare_list:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- id: set-matrix
15+
run: |
16+
echo "matrix=[$(find . -type f -name 'Makefile' ! -path './sample-archive/*' | sed 's|/Makefile||' | awk '{printf "\"%s\",", $1}' | sed 's/,$//')]" >> $GITHUB_OUTPUT
17+
- run: echo "matrix=[$(find . -type f -name 'Makefile' ! -path './sample-archive/*' | sed 's|/Makefile||' | awk '{printf "\"%s\",", $1}' | sed 's/,$//')]"
18+
19+
outputs:
20+
matrix: ${{ steps.set-matrix.outputs.matrix }}
21+
22+
runtest:
23+
name: Run Dependency Test
24+
runs-on: ubuntu-latest
25+
needs: prepare_list
26+
strategy:
27+
fail-fast: false
28+
matrix:
29+
directory: ${{ fromJson(needs.prepare_list.outputs.matrix) }}
30+
31+
steps:
32+
- uses: actions/checkout@v4
33+
- name: Change to Directory
34+
run: cd ${{ matrix.directory }}
35+
- name: Execute a simple test
36+
run: |
37+
ls -a
38+
pwd
39+
env:
40+
AWS_ACCESS_KEY_ID: key
41+
AWS_SECRET_ACCESS_KEY: secret

0 commit comments

Comments
 (0)