Merge pull request #4 from IT4Change/database-sqlite #10
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: "backend:test:build test code" | |
on: push | |
jobs: | |
# only (but most important) job from this workflow required for pull requests | |
# check results serve as run conditions for all other jobs here | |
files-changed: | |
name: Detect File Changes - backend-test-build-code | |
runs-on: ubuntu-latest | |
outputs: | |
changes: ${{ steps.changes.outputs.backend-test-build-code }} | |
steps: | |
- uses: actions/[email protected] | |
- name: Check for backend file changes | |
uses: dorny/[email protected] | |
id: changes | |
with: | |
token: ${{ github.token }} | |
filters: .github/file-filters.yml | |
list-files: shell | |
build: | |
if: needs.files-changed.outputs.changes == 'true' | |
name: Build - Backend | |
needs: files-changed | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Backend | Build | |
run: npm install && npm run build |