1
0
mirror of synced 2024-11-22 05:16:05 +03:00

chore: github-actions testing pipeline

This commit is contained in:
Zaytsev Kirill 2021-06-13 00:37:51 +03:00
parent 9336db2989
commit b9af1bdab8
2 changed files with 17 additions and 2 deletions

16
.github/workflows/github-actions.yml vendored Normal file
View File

@ -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

View File

@ -1,9 +1,8 @@
version: '3.6' version: '3.6'
services: services:
node: node:
image: library/node:12 image: node:12-alpine
user: node user: node
volumes: volumes:
- ./:/var/www/vue-formulario - ./:/var/www/vue-formulario
- "$SSH_AUTH_SOCK:/ssh-auth.sock"
working_dir: /var/www/vue-formulario working_dir: /var/www/vue-formulario