-
Notifications
You must be signed in to change notification settings - Fork 1
43 lines (40 loc) · 1.28 KB
/
action.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
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