43 lines
938 B
YAML
43 lines
938 B
YAML
name: CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
docker:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Build image
|
|
run: docker build . --tag ${GITHUB_REPOSITORY,,}
|
|
|
|
- name: Show image info
|
|
run: docker images
|
|
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
|
|
- name: Set up Python 3.8
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: 3.8
|
|
- uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cache/pip
|
|
key: pip-${{ hashFiles('requirements.txt') }}-${{ hashFiles('dev-requirements.txt') }}
|
|
|
|
- name: Setup node
|
|
uses: actions/setup-node@v1
|
|
with:
|
|
node-version: '10.x'
|
|
- uses: actions/cache@v1
|
|
with:
|
|
path: $HOME/.npm
|
|
key: npm-${{ hashFiles('package-lock.json') }}
|
|
|
|
- name: Install
|
|
run: ./scripts/setup.sh
|
|
- name: Run tests
|
|
run: ./scripts/test.sh
|