1
Fork 0
theorangeone.net-legacy/.github/workflows/ci.yml

61 lines
1.1 KiB
YAML
Raw Normal View History

2020-04-10 12:56:18 +01:00
name: CI
on: [push, pull_request]
env:
FLICKR_API_KEY: ${{ secrets.FLICKR_API_KEY }}
FLICKR_USER_ID: ${{ secrets.FLICKR_USER_ID }}
2020-04-10 12:56:18 +01:00
jobs:
2020-05-10 16:50:03 +01:00
docker:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
2020-05-10 16:59:45 +01:00
with:
submodules: true
2020-05-10 16:50:03 +01:00
- name: Dump environment
run: env >> .env
2020-05-10 16:50:03 +01:00
- name: Build image
run: docker-compose build
2020-05-10 16:50:03 +01:00
- name: Show image info
run: docker images
2020-04-10 12:56:18 +01:00
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
with:
submodules: true
- name: Setup Hugo
uses: peaceiris/actions-hugo@v2
with:
2020-07-24 23:40:11 +01:00
hugo-version: '0.73.0'
2020-04-10 12:56:18 +01:00
extended: true
- 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 Dependencies
run: npm ci
- name: Dump environment
run: env >> .env
2020-04-10 12:56:18 +01:00
- name: Build site
run: ./scripts/release.sh
- name: Run tests
run: ./scripts/test.sh