Skip to content

Commit

Permalink
Merge pull request #7134 from Expensify/andrew-sign-test
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham authored Jan 13, 2022
2 parents 4121efa + 3a42e30 commit f8e48cd
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,10 @@ jobs:
max_attempts: 5
command: npm ci

- run: npm run test
- name: Jest Unit Tests
run: npm run test
env:
CI: true

- name: Pull Request Tests
run: tests/unit/getPullRequestsMergedBetweenTest.sh
9 changes: 7 additions & 2 deletions tests/unit/getPullRequestsMergedBetweenTest.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
#!/bin/bash

# Fail immediately if there is an error thrown
set -e

TEST_DIR=$(dirname "$(dirname "$(cd "$(dirname "$0")" || exit 1;pwd)/$(basename "$0")")")
DUMMY_DIR="$HOME/DumDumRepo"
getPullRequestsMergedBetween="$TEST_DIR/utils/getPullRequestsMergedBetween.js"
Expand Down Expand Up @@ -53,6 +56,8 @@ fi

info "Initializing Git repo..."
git init -b main
git config user.email "[email protected]"
git config user.name "test"
git add package.json package-lock.json
git commit -m "Initial commit"

Expand Down Expand Up @@ -226,8 +231,8 @@ success "Bumped version to 1.1.1 on main!"
info "Cherry picking PR #7 and the version bump to staging..."
git checkout staging
git checkout -b cherry-pick-staging-7
git cherry-pick -S -x --mainline 1 --strategy=recursive -Xtheirs "$PR_7_MERGE_COMMIT"
git cherry-pick -S -x --mainline 1 "$VERSION_BUMP_MERGE_COMMIT"
git cherry-pick -x --mainline 1 --strategy=recursive -Xtheirs "$PR_7_MERGE_COMMIT"
git cherry-pick -x --mainline 1 "$VERSION_BUMP_MERGE_COMMIT"
git checkout staging
git merge cherry-pick-staging-7 --no-ff -m "Merge pull request #9 from Expensify/cherry-pick-staging-7"
git branch -d cherry-pick-staging-7
Expand Down

0 comments on commit f8e48cd

Please sign in to comment.