Configure Renovate - autoclosed #4
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: CI | |
on: | |
push: | |
branches: | |
- master | |
- actions | |
pull_request: | |
branches: | |
- master | |
env: | |
CARGO_TERM_COLOR: always | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
# Postgresql setup adapted from Diesel CI | |
# Disable ssl as server doesn't have a trusted cert | |
- name: Setup postgres | |
run: | | |
sudo apt-get update | |
sudo apt-get install -y postgresql | |
sudo sed -i "s/scram-sha-256/trust/" /etc/postgresql/14/main/pg_hba.conf | |
sudo cat /etc/postgresql/14/main/pg_hba.conf | |
sudo service postgresql restart && sleep 3 | |
echo BUTANE_PG_CONNSTR="host=localhost user=postgres sslmode=disable port=5432" >> $GITHUB_ENV | |
- name: Build | |
run: make build | |
- name: Lint | |
run: make lint | |
- name: Test Core | |
run: cd butane_core && cargo test --all-features | |
- name: Test Codegen | |
run: cd butane_codegen && cargo test --all-features | |
- name: Run example cli tests | |
run: cd example && cargo test --all-features | |
- name: Test | |
run: cd butane && cargo test --all-features |