Cypress无法从GitHub中读取密码机密,但它可以获得记录密钥



这是我的.yml文件

name: smoke tests`enter code here`
on:
workflow_dispatch:
jobs:
cypress-test:
runs-on: self-hosted
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install cypress and verify
run: npm install
- name: Run smoke tests
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
CYPRESS_PASSWORD: ${{ secrets.CYPRESS_PASSWORD }}
run: npx cypress-ntlm run -e TAGS='@smoke',configFile=test --spec 'cypress/integration/cucumber-tests/**/*.feature'

我能够使用npx cypry-ntlm run-e TAGS='@smok',configFile=test cypress_password=$cypress_password--spec'cypry/integration/cuckle-tests/**/*.feature'从GitHub secret获取密码

最新更新