From 6119ad9675d5b09e3d94c5b34975fdfd3727bdb0 Mon Sep 17 00:00:00 2001 From: Skyler <skyler.mcnamee@hibc.gov.bc.ca> Date: Thu, 7 Nov 2024 09:39:25 -0800 Subject: [PATCH] add workflow to validate address-service --- .../workflows/validate-address-service.yaml | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/validate-address-service.yaml diff --git a/.github/workflows/validate-address-service.yaml b/.github/workflows/validate-address-service.yaml new file mode 100644 index 0000000..defd407 --- /dev/null +++ b/.github/workflows/validate-address-service.yaml @@ -0,0 +1,36 @@ +name: validate address-service +on: + push: + branches: + - "*" + # paths: + # - "address-service/src/**/*.js" + # - "address-service/package*.json" + workflow_dispatch: + +env: + NODE_VERSION: "12" + +defaults: + run: + working-directory: ./address-service + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@main + - uses: actions/setup-node@main + with: + node-version: ${NODE_VERSION} + - name: Install dependencies + run: npm ci + - name: Unit tests w/ coverage + run: npm run test:coverage + - name: LINTing + run: npm run test:lint + # - name: OpenAPI Schema + # run: npm run test:schema + - name: Build step + run: npm run build \ No newline at end of file