auth #147
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: auth | |
on: | |
workflow_run: | |
workflows: [core] | |
types: | |
- completed | |
env: | |
wdi5_username: ${{secrets.BTP_LOGIN}} | |
wdi5_one_username: ${{secrets.BTP_LOGIN}} | |
wdi5_two_username: ${{secrets.BTP_LOGIN}} | |
wdi5_password: ${{secrets.BTP_PASSWORD}} | |
wdi5_one_password: ${{secrets.BTP_PASSWORD}} | |
wdi5_two_password: ${{secrets.BTP_PASSWORD}} | |
BROWSERSTACK_USERNAME: ${{secrets.BROWSERSTACK_USERNAME}} | |
BROWSERSTACK_ACCESS_KEY: ${{secrets.BROWSERSTACK_ACCESS_KEY}} | |
SAUCE_USERNAME: ${{secrets.SAUCE_USERNAME}} | |
SAUCE_ACCESS_KEY: ${{secrets.SAUCE_ACCESS_KEY}} | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [16] | |
steps: | |
- name: check out repo | |
uses: actions/checkout@v3 | |
- name: use node ${{ matrix.node-version }} | |
uses: actions/setup-node@v3 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: "npm" | |
cache-dependency-path: "**/package-lock.json" | |
# install both module + sample app(s) deps | |
- name: install packages (wdi5 + sample app(s)) | |
run: | | |
npm pkg delete scripts.prepare | |
npm ci | |
# build things | |
- name: build | |
run: npm run build | |
- name: (browserstack) btp/sap cloud id, basic auth, office 365, custom auth | |
run: BROWSERSTACK=true npm run test:auth |