1
Fork 0
This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
website-2020-spike/.github/workflows/ci.yml

44 lines
938 B
YAML
Raw Permalink Normal View History

2020-04-12 14:32:55 +01:00
name: CI
on: [push, pull_request]
jobs:
2020-05-02 13:55:29 +01:00
docker:
2020-04-12 14:32:55 +01:00
runs-on: ubuntu-latest
2020-05-02 13:55:29 +01:00
steps:
- uses: actions/checkout@v1
- name: Build image
run: docker build . --tag ${GITHUB_REPOSITORY,,}
2020-04-12 14:32:55 +01:00
2020-05-02 13:55:29 +01:00
- name: Show image info
run: docker images
build:
runs-on: ubuntu-latest
2020-04-12 14:32:55 +01:00
steps:
- uses: actions/checkout@v1
2020-04-12 15:51:48 +01:00
2020-04-12 14:32:55 +01:00
- 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') }}
2020-04-12 15:51:48 +01:00
- 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') }}
2020-04-12 15:35:36 +01:00
- name: Install
run: ./scripts/setup.sh
2020-04-12 15:37:22 +01:00
- name: Run tests
run: ./scripts/test.sh