Skip to content

Added test stage, updated ci workflow #19

Added test stage, updated ci workflow

Added test stage, updated ci workflow #19

name: run tests
on:
workflow_dispatch:
pull_request:
types: [opened, synchronize, reopened]
jobs:
build_and_test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4

Check failure on line 13 in .github/workflows/continuous_integration.yaml

View workflow run for this annotation

GitHub Actions / .github/workflows/continuous_integration.yaml

Invalid workflow file

You have an error in your yaml syntax on line 13
- name: build image
uses: docker/build-push-action@f2a1d5e99d037542a71f64918e516c093c6f3fc4
with:
context: .
push: false
load: true
target: test
cache-from: type=gha
cache-to: type=gha,mode=max
tags: arquivo-test:latest
- name: run the test
run: docker run arquivo-test:latest
# run_rails_test:
# runs-on: ubuntu-latest
# name: "rails test"
# steps:
# - uses: actions/checkout@v3
# - uses: ruby/setup-ruby@v1
# with:
# bundler-cache: true
# - uses: actions/setup-python@v4 # for building node-sass?
# - run: |
# git config --global user.name "github-actions"
# git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
# - name: "bundle"
# run: "bundle install && yarn install"
# - name: "rake db:setup"
# run: "bundle exec rails db:setup"
# - name: "test"
# run: "bundle exec rails test"