Skip to content

Commit

Permalink
Add GitHub Actions workflow for testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Sokuya committed Dec 3, 2024
1 parent 65cf887 commit 8101573
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,15 @@ jobs:
- name: Install dependencies
run: npm ci # Install dependencies using 'npm ci' for CI/CD

- name: Install Appium
run: npm install -g appium

- name: Start Appium server
run: appium --port 4723 --log-level error &

- name: Wait for Appium server to start
run: sleep 5

- name: Run tests
env:
LINKEDIN_USERNAME: ${{ secrets.LINKEDIN_USERNAME }}
Expand Down
2 changes: 0 additions & 2 deletions src/contacts.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ describe('Create iOS Appium connection', function () {
* Signs in to LinkedIn using the provided credentials.
*/
it('Test for adding new contact and opening its LinkedIn profile and singing-in', async () => {
console.log('LinkedIn Username:', process.env.LINKEDIN_USERNAME);
console.log('LinkedIn Password:', process.env.LINKEDIN_PASSWORD);
const { firstName, lastName, company, phone, email, socialProfile } = TestData.contacts.default;
await contactsPage.addNewContact(firstName, lastName, company, phone, email, socialProfile);
console.log(`Using LinkedIn username: ${credentials.username}`)
Expand Down

0 comments on commit 8101573

Please sign in to comment.