add three verifier test #2
This file contains hidden or 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: W3C Crosswalk CI | |
| on: | |
| push: | |
| branches: | |
| - master | |
| pull_request: | |
| branches: | |
| - master | |
| concurrency: | |
| group: w3c-crosswalk-ci-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Smoke, Python Tests, and Three-Verifier Acceptance | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 45 | |
| defaults: | |
| run: | |
| working-directory: w3c-crosswalk | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@v6 | |
| with: | |
| path: w3c-crosswalk | |
| - name: Checkout did-jwt-vc sibling | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: decentralized-identity/did-jwt-vc | |
| path: did-jwt-vc | |
| - name: Checkout vc-go sibling | |
| uses: actions/checkout@v6 | |
| with: | |
| repository: trustbloc/vc-go | |
| path: vc-go | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version-file: w3c-crosswalk/pyproject.toml | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| working-directory: w3c-crosswalk | |
| cache-dependency-glob: | | |
| w3c-crosswalk/pyproject.toml | |
| w3c-crosswalk/uv.lock | |
| - name: Set up Node | |
| uses: actions/setup-node@v6 | |
| with: | |
| node-version: 22 | |
| cache: yarn | |
| cache-dependency-path: did-jwt-vc/yarn.lock | |
| - name: Enable Corepack Yarn | |
| run: | | |
| corepack enable | |
| corepack prepare yarn@1.22.22 --activate | |
| - name: Set up Go | |
| uses: actions/setup-go@v6 | |
| with: | |
| go-version-file: w3c-crosswalk/apps/isomer-go/go.mod | |
| cache-dependency-path: | | |
| w3c-crosswalk/apps/isomer-go/go.sum | |
| vc-go/go.sum | |
| - name: Cache npm downloads for isomer-node | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-isomer-node-npm-${{ hashFiles('w3c-crosswalk/apps/isomer-node/package-lock.json') }} | |
| restore-keys: | | |
| ${{ runner.os }}-isomer-node-npm- | |
| - name: Cache Go build outputs for sidecar checks | |
| uses: actions/cache@v4 | |
| with: | |
| path: ${{ github.workspace }}/.cache/isomer-go-build | |
| key: ${{ runner.os }}-isomer-go-build-${{ hashFiles('w3c-crosswalk/apps/isomer-go/go.sum', 'vc-go/go.sum') }} | |
| restore-keys: | | |
| ${{ runner.os }}-isomer-go-build- | |
| - name: Sync locked environment | |
| run: uv sync --locked | |
| - name: Run smoke checks | |
| run: make smoke | |
| - name: Run full Python test suite | |
| run: make test | |
| - name: Run three-verifier acceptance test | |
| run: make test-external-w3c-all | |
| env: | |
| GO_CACHE: ${{ github.workspace }}/.cache/isomer-go-build |