Skip to content

DOP-4401: Add commit hash to automated test deploys #2035

DOP-4401: Add commit hash to automated test deploys

DOP-4401: Add commit hash to automated test deploys #2035

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
# Checks for changes outside of /modules directory
changes:
runs-on: ubuntu-latest
outputs:
autobuilder: ${{ steps.filter.outputs.autobuilder }}
steps:
- uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
# set autobuilder filter true
# if any changes outside of modules directory
filters: |
autobuilder:
- '!(modules/**)'
test:
needs: changes
if: ${{ needs.changes.outputs.autobuilder == 'true' }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '18.x'
- name: Install dependencies
run: npm install --dev
- name: Lint
run: npm run lint && npm run format
- name: Test
run: npm test