Skip to content

Commit 62fdd26

Browse files
committed
Add GitHub workflow for integration tests
1 parent 866ec62 commit 62fdd26

File tree

2 files changed

+21
-0
lines changed

2 files changed

+21
-0
lines changed

.fernignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
README.md
44

5+
.github/workflows/integration.yml
56
src/wrapper
67
src/index.ts
78
src/errors/SquareError.ts

.github/workflows/integration.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: ci
2+
3+
on: [push]
4+
5+
jobs:
6+
integration:
7+
env:
8+
TEST_SQUARE_TOKEN: ${{ secrets.TEST_SQUARE_TOKEN }}
9+
runs-on: ubuntu-latest
10+
steps:
11+
- name: Checkout repo
12+
uses: actions/checkout@v3
13+
14+
- name: Set up node
15+
uses: actions/setup-node@v3
16+
17+
- name: Run integration tests
18+
# TODO: Replace the following 'run' statement with the following when TEST_SQUARE_TOKEN secret exists.
19+
# run: yarn && yarn test:integration
20+
run: yarn

0 commit comments

Comments
 (0)