test(ses): add a smoke test for SES lockdown in chrome dev #1
Workflow file for this run
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: Lockdown Canary | |
## detects lockdown issues on latest chrome | |
on: | |
push: | |
branches: | |
- lockdown-canary | |
schedule: | |
- cron: '0 0 * * *' # Runs every day at midnight | |
jobs: | |
chrome-dev: | |
runs-on: ubuntu-latest | |
# runs-on: macos-latest | |
## chrome-canary is not supported on linux o_O | |
## but canary on mac won't connect | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- name: Use Node.js stable | |
uses: actions/setup-node@v3 | |
- name: Setup Chrome | |
uses: browser-actions/setup-chrome@v1 | |
id: setup-chrome | |
with: | |
chrome-version: 'dev' | |
- name: build ses | |
run: | | |
cd ./packages/ses/ | |
yarn | |
- name: install dependencies | |
run: | | |
cd ./packages/ses/smoke-test/ | |
yarn install | |
- name: Run tests | |
run: | | |
${{ steps.setup-chrome.outputs.chrome-path }} --version | |
node ./packages/ses/smoke-test/index.js ${{ steps.setup-chrome.outputs.chrome-path }} |