forked from dochne/wappalyzer
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
c340200
commit 0e60865
Showing
2 changed files
with
46 additions
and
1 deletion.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: Tests | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
paths: | ||
- "src/technologies/*.json" | ||
- "src/categories.json" | ||
- "src/groups.json" | ||
workflow_dispatch: | ||
|
||
jobs: | ||
test: | ||
name: Test and upload to GCP | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
fetch-depth: 0 | ||
|
||
- name: Install dependencies | ||
run: yarn install | ||
|
||
- name: Validate | ||
run: yarn run validate | ||
|
||
- name: Run WebPageTest with unit tests | ||
id: unit-test | ||
env: | ||
WPT_SERVER: "webpagetest.httparchive.org" | ||
WPT_API_KEY: ${{ secrets.HA_API_KEY }} | ||
PR_NUMBER: ${{ github.event.pull_request.number }} | ||
run: yarn run test | ||
|
||
- name: Upload to GCP | ||
id: upload | ||
env: | ||
GCP_PROJECT_ID: ${{ secrets.GCP_PROJECT_ID }} | ||
GCP_SA_KEY: ${{ secrets.GCP_SA_KEY }} | ||
run: | | ||
echo $GCP_SA_KEY > /tmp/gcp_key.json | ||
yarn run upload |