From c19d1a737d56716e7c66dbaa24e42a4cdb7f9588 Mon Sep 17 00:00:00 2001 From: Zaytsev Kirill Date: Wed, 24 Nov 2021 14:15:14 +0300 Subject: [PATCH] ci: Tests pipeline --- .github/workflows/github-actions.yml | 16 ++++++++++++++++ docker-compose.yml | 8 ++++++++ 2 files changed, 24 insertions(+) create mode 100644 .github/workflows/github-actions.yml create mode 100644 docker-compose.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 new file mode 100644 index 0000000..bd4e3ea --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,8 @@ +version: '3.6' +services: + node: + image: node:12-alpine + user: node + volumes: + - ./:/var/www/vue-i18n-loader + working_dir: /var/www/vue-i18n-loader