From b9af1bdab86122b8f0fa816b81292c3b8bcc69c2 Mon Sep 17 00:00:00 2001 From: Zaytsev Kirill Date: Sun, 13 Jun 2021 00:37:51 +0300 Subject: [PATCH] chore: github-actions testing pipeline --- .github/workflows/github-actions.yml | 16 ++++++++++++++++ docker-compose.yml | 3 +-- 2 files changed, 17 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/github-actions.yml diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml new file mode 100644 index 0000000..55b376b --- /dev/null +++ b/.github/workflows/github-actions.yml @@ -0,0 +1,16 @@ +name: Tests + +on: [push] + +jobs: + Tests: + runs-on: ubuntu-latest + steps: + - run: echo "Using branch ${{ github.ref }} for repository ${{ github.repository }}." + - name: Check out repository code + uses: actions/checkout@v2 + - run: echo "The ${{ github.repository }} repository has been cloned to the runner." + - run: chmod 777 . + - run: docker-compose pull + - run: docker-compose run --rm node yarn install + - run: docker-compose run --rm node yarn test diff --git a/docker-compose.yml b/docker-compose.yml index 2b95a7a..8b3dee1 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,9 +1,8 @@ version: '3.6' services: node: - image: library/node:12 + image: node:12-alpine user: node volumes: - ./:/var/www/vue-formulario - - "$SSH_AUTH_SOCK:/ssh-auth.sock" working_dir: /var/www/vue-formulario