Update steam version #50
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: test Odoo addons | |
on: | |
pull_request: | |
branches: | |
- "v4.0.x*" | |
push: | |
branches: | |
- "v4.0.x" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
odoo_version: ["12", "14"] | |
env: | |
ODOO_VERSION: ${{ matrix.odoo_version }} | |
ALGOLIA_API_KEY: ${{ secrets.ALGOLIA_API_KEY }} | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Make db folder | |
run: mkdir .db | |
- name: Init Odoo Database | |
run: docker compose -f ci.docker-compose.yml run --rm --service-ports odoo odoo --stop-after-init | |
- name: Flag as safe | |
run: git config --global --add safe.directory /home/runner/work/locomotive-shopinvader/locomotive-shopinvader | |
- name: Install Shopinvader Gems | |
run: docker compose -f ci.docker-compose.yml run --rm --service-ports shopinvader bundle install | |
- name: Set Algolia key in template/config/site.yml | |
run: sed -i "s/ALGOLIA-API-KEY/${ALGOLIA_API_KEY}/g" spec/integration/template/config/site.yml | |
- name: Run Test | |
run: docker compose -f ci.docker-compose.yml run -e ALGOLIA_API_KEY=$ALGOLIA_API_KEY --rm --service-ports shopinvader bundle exec rake spec | |
- uses: codecov/codecov-action@v2 |