Skip to content

Commit

Permalink
Merge pull request #58 from hibariya/act
Browse files Browse the repository at this point in the history
Make ci.yml compatible with `act`
  • Loading branch information
cjavilla-stripe authored Mar 10, 2021
2 parents bf2cd0e + 3721545 commit fdfb2e8
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 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 All @@ -47,17 +44,12 @@ 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

0 comments on commit fdfb2e8

Please sign in to comment.