From 36b6eb6f8f035687064a125f2b7ce7bf9af299f8 Mon Sep 17 00:00:00 2001 From: Simon Dalvai <s.dalvai@noi.bz.it> Date: Wed, 19 Jan 2022 09:22:42 +0100 Subject: [PATCH] create GithubActions ci --- .github/workflows/ci.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..7b208cb --- /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 + -- GitLab