Skip to content

Commit

Permalink
Make ci.yml compatible with act
Browse files Browse the repository at this point in the history
By this jobs on ci.yml can be run on local machines with `act`.
Related to stripe-samples/sample-ci#6
  • Loading branch information
hibariya committed Mar 11, 2021
1 parent cc795d9 commit 03da3c6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
20 changes: 6 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,14 +15,11 @@ jobs:
repository: 'stripe-samples/sample-ci'
path: 'sample-ci'

- name: Install gettext for envsubst
- name: Setup dependencies
run: |
sudo apt install gettext-base
source sample-ci/helpers.sh
- name: Install jq
run: |
sudo curl -o /usr/bin/jq -L https://github.com/stedolan/jq/releases/download/jq-1.6/jq-linux64
sudo chmod +x /usr/bin/jq
setup_dependencies
- name: Run tests
run: |
Expand Down Expand Up @@ -63,18 +60,13 @@ jobs:
env:
STRIPE_PUBLISHABLE_KEY: ${{ secrets.TEST_STRIPE_PUBLISHABLE_KEY }}
STRIPE_SECRET_KEY: ${{ secrets.TEST_STRIPE_SECRET_KEY }}
PREMIUM: price_1HXyXwCWW2eVYDoPnnTQ02VO
BASIC: price_1HXyVBCWW2eVYDoPtXcEdXfw
PREMIUM: ${{ secrets.TEST_PREMIUM_PRICE }}
BASIC: ${{ secrets.TEST_BASIC_PRICE }}


- name: Collect debug information
if: ${{ failure() }}
run: |
cat docker-compose.yml
docker-compose ps -a
docker-compose logs web
env:
STRIPE_PUBLISHABLE_KEY: ${{ secrets.TEST_STRIPE_PUBLISHABLE_KEY }}
STRIPE_SECRET_KEY: ${{ secrets.TEST_STRIPE_SECRET_KEY }}
PREMIUM: price_1HXyXwCWW2eVYDoPnnTQ02VO
BASIC: price_1HXyVBCWW2eVYDoPtXcEdXfw

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ dist

# React
build

# act
.secrets

0 comments on commit 03da3c6

Please sign in to comment.