Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 19 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ jobs:
- 27017:27017
env:
RAILS_ENV: test
COVERAGE: true
steps:
- name: Checkout code
uses: actions/checkout@v3
Expand All @@ -58,4 +59,21 @@ jobs:
with:
bundler-cache: true
- name: Run tests
run: bin/rspec
id: rspec
run: |
echo "::set-output name=exit_code::$(bin/rspec || echo $?)"
shell: bash
- name: Upload screenshots
if: steps.rspec.outputs.exit_code != '0'
uses: actions/upload-artifact@v2
with:
name: screenshots
path: ./tmp/capybara
- name: Upload logs
if: steps.rspec.outputs.exit_code != '0'
uses: actions/upload-artifact@v2
with:
name: rails-logs
path: ./log/test.log
- name: Coveralls
uses: coverallsapp/github-action@v2
4 changes: 3 additions & 1 deletion .github/workflows/docker-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ on:
workflows: ["Lint & Tests"]
types:
- completed
branches:
- main


env:
Expand All @@ -35,7 +37,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4.1.1

# Install the cosign tool except on PR
# https://github.com/sigstore/cosign-installer
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
[![Tests](https://github.com/digitaltom/mapforge/actions/workflows/ci.yml/badge.svg)](https://github.com/digitaltom/mapforge/actions/workflows/ci.yml)
[![Docker](https://github.com/digitaltom/mapforge/actions/workflows/docker-publish.yml/badge.svg)](https://github.com/digitaltom/mapforge/actions/workflows/docker-publish.yml)
[![Code Climate](https://codeclimate.com/github/digitaltom/mapforge.png)](https://codeclimate.com/github/digitaltom/mapforge)
[![Coverage Status](https://coveralls.io/repos/github/digitaltom/mapforge/badge.svg?branch=main)](https://coveralls.io/github/digitaltom/mapforge?branch=main)

# README

Expand Down