Skip to content
This repository has been archived by the owner on Dec 12, 2024. It is now read-only.

Commit

Permalink
initial schema validation tests
Browse files Browse the repository at this point in the history
cicd workflow

added submodule recursive cicd

removed 14 and 16 from tests for now

some debugging.

fix github ref

added specs as a submodule and pointed tests with symbolic link

removed debugging steps
  • Loading branch information
andorsk committed Jan 12, 2023
1 parent 1ef7944 commit 4ebca2d
Show file tree
Hide file tree
Showing 9 changed files with 2,074 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
name: Tests
"on":
push:
pull_request:
types:
- opened
- synchronize
- reopened
schedule:
- cron: "0 6 * * 0"

jobs:
test:
name: "Node.js v${{ matrix.node }}"
runs-on: ubuntu-latest
strategy:
matrix:
node:
- 18
steps:
- uses: actions/setup-node@v1
with:
node-version: "${{ matrix.node }}"

- uses: actions/checkout@v2
with:
submodules: recursive
ref: ${{ github.ref }}

- name: "Cache node_modules"
uses: actions/cache@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-v${{ matrix.node }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-node-v${{ matrix.node }}-
- name: Install Dependencies
run: npm install
working-directory: ./tests

- name: Run All Tests
run: make test
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "spec"]
path = spec
url = https://github.com/decentralized-identity/wallet-rendering.git
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
default: all

test:
cd tests && npm test

.PHONY: all
all: $(TARGET)
1 change: 1 addition & 0 deletions examples
1 change: 1 addition & 0 deletions spec
Submodule spec added at 5dd0b2
1 change: 1 addition & 0 deletions tests/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
Loading

0 comments on commit 4ebca2d

Please sign in to comment.