Files
pezkuwi-telemetry/.github/workflows/backend.yml
T
Workflow config file is invalid. Please check your config file: model.ReadWorkflow: yaml: line 29: did not find expected key
Martin Pugh 9a268c5d49 fix strings
2021-03-26 13:29:47 +01:00

37 lines
968 B
YAML

name: Backend CI
on:
push:
paths:
- 'backend/**'
- '!frontend/**'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Build
working-directory: ./backend
run: cargo build --verbose
- name: Run tests
working-directory: ./backend
run: cargo test --verbose
- name: Build release and call executable
working-directory: ./backend
run: cargo run --release -- --help
- name: Login to Dockerhub
uses: docker/login-action@v1
with:
username: ${{ secrets.DOCKER_USERNAME }}
password: ${{ secrets.DOCKER_PASSWORD }}
- name: Build and Push template image
uses: docker/build-push-action@v2 # https://github.com/docker/build-push-action
context: './backend'
repository: parity/substrate-telemetry-backend
push: ${{ startsWith(github.ref, 'refs/tags/') }}
tags: latest
# add_git_labels: true