Merge pull request #4 from zainuldeen/master #59
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Data Scraping | |
on: push | |
jobs: | |
installDependencies: | |
name: Install Dependencies | |
runs-on: ubuntu-latest | |
environment: myenvironment | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install Dependencies | |
uses: actions/setup-node@v2 | |
env: | |
PUPPETEER_SKIP_CHROMIUM_DOWNLOAD: "true" | |
with: | |
args: install | |
- name: Test Code | |
uses: mujo-code/[email protected] | |
env: | |
CI: "true" | |
with: | |
args: npx yarn | |
- name: Make envfile | |
uses: SpicyPizza/[email protected] | |
with: | |
envkey_SESSION_ID: ${{ secrets.SESSION_ID }} | |
envkey_apiKey: ${{ secrets.apiKey }} | |
envkey_authDomain: ${{ secrets.authDomain }} | |
envkey_projectId: ${{ secrets.projectId }} | |
envkey_storageBucket: ${{ secrets.storageBucket }} | |
envkey_messagingSenderId: ${{ secrets.messagingSenderId }} | |
envkey_appId: ${{ secrets.appId }} | |
envkey_measurementId: ${{ secrets.measurementId }} | |
# - name: create env file | |
# run: | | |
# touch .env | |
# echo SESSION_ID=${{ secrets.ENV_FILE }} >> .env | |
# echo SESSION_ID=${{ secrets.SESSION_ID }} | |
- run: npx yarn | |
- run: npx yarn test | |
- run: npx yarn test | |