update package information #252
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: 'build-test' | |
on: # rebuild any PRs and main branch changes | |
workflow_dispatch: | |
pull_request: | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
build: # make sure build/ci work properly | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- run: | | |
npm install | |
- run: | | |
npm run all | |
test: # make sure the action works on a clean machine without building | |
strategy: | |
matrix: | |
runs-on: [macos-latest, ubuntu-20.04, ubuntu-22.04, ubuntu-latest] | |
runs-on: ${{ matrix.runs-on }} | |
steps: | |
- name: Checkout Locally | |
uses: actions/checkout@v3 | |
if: ${{ env.ACT }} | |
with: | |
path: "1password-action" | |
- name: Checkout Github | |
uses: actions/checkout@v3 | |
if: ${{ !env.ACT }} | |
- name: Test Action | |
uses: ./ | |
id: secrets | |
with: | |
device-id: ${{ secrets.OP_DEVICE_ID }} | |
sign-in-address: ${{ secrets.OP_SIGN_IN_ADDRESS }} | |
email-address: ${{ secrets.OP_EMAIL_ADDRESS }} | |
secret-key: ${{ secrets.OP_SECRET_KEY }} | |
master-password: ${{ secrets.OP_MASTER_PASSWORD }} | |
items: | | |
1Password Action Tests > Test Login | |
1Password Action Tests > Test Password | p12 | |
1Password Action Tests > Test Document | |
- name: Verify | |
run: | | |
[[ "${{ steps.secrets.outputs.test_login_username }}" == "username001" ]] || exit 1 | |
[[ "${{ steps.secrets.outputs.test_login_password }}" == "password123" ]] || exit 1 | |
[[ "${{ steps.secrets.outputs.p12_password }}" == "password456" ]] || exit 1 | |
[[ "${{ steps.secrets.outputs.test_document_filename }}" == "Test Document.txt" ]] || exit 1 | |
[[ -f "Test Document.txt" ]] || exit 1 |