diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000000000000000000000000000000000000..7b208cb1bd9d417c1d6dd35851b1f14fb8759e9d --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,34 @@ +name: ci aliens4friends-dashboard + +on: + push: + branches: [ main, development ] + paths: + - "!README.md" + pull_request: + branches: [ main, development ] + paths: + - "!README.md" + + # Allows you to run this workflow manually from the Actions tab + workflow_dispatch: + +jobs: + build: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - name: test backend + run: php artisan test --without-tty + + + - uses: actions/setup-node@v2 + with: + node-version: '12' + cache: 'npm' + - name: test frontend + run: | + npm install + npm run prod +