Build images for arm64 #52
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: run tests | |
on: | |
workflow_dispatch: | |
pull_request: | |
types: [opened, synchronize, reopened] | |
jobs: | |
build_and_test: | |
runs-on: ubuntu-latest | |
name: "docker rails test" | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Docker Buildx | |
uses: docker/setup-buildx-action@v3 | |
- name: build image | |
uses: docker/build-push-action@v5 | |
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 | |
- name: run the test | |
run: STATIC_PLS=1 docker run -e STATIC_PLS 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" |