Run puppeeteer for Pantheon sites #30148
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: Run puppeeteer for Pantheon sites | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
schedule: | |
- cron: "5 * * * *" | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [14.x] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v1 | |
with: | |
node-version: ${{ matrix.node-version }} | |
- run: npm install -g yarn | |
- run: yarn | |
- run: npx tsc | |
- run: free -h | |
- run: ls -a | |
- run: node pantheon.js > pantheon.markdown | |
- run: git config user.name "Kushal Hada"; | |
if: always() | |
- run: git config user.email "kus@tilde.team"; | |
if: always() | |
- run: git add .; | |
if: always() | |
- run: git commit -m "add pantheon perf log" -m "perf matters"; | |
if: always() | |
- run: git pull --rebase --strategy-option=theirs; | |
if: always() | |
- run: git push origin master; | |
if: always() |