1/22/2024 0 Comments Github actions services postgresgithub/workflows/pgtest.yml name : Postgres tests on : push jobs : pgtap : runs-on : ubuntu-latest services : postgres : image : postgres:14 env : POSTGRES_PASSWORD : postgres options : >-health-cmd pg_isready -health-interval 10s -health-timeout 5s -health-retries 5 ports : - 5432:5432 steps : - uses : - name : install pg_prove run : sudo cpan TAP::Parser::SourceHandler::pgTAP env : SHELL : /bin/bash - name : install postgres dev run : sudo apt-get install -y -no-install-recommends postgresql-server-dev-14 - name : Checkout pgtap uses : with : repository : theory/pgtap path : pgtap ref : v1.2.0 - name : install pgtap working-directory : pgtap run : make & psql -host localhost -username postgres -dbname postgres -file sql/pgtap.sql env : PGPASSWORD : postgres - name : load sql run : >- psql -host localhost -username postgres -dbname postgres \ -file my_function.sql env : PGPASSWORD : postgres - name : run tests run : pg_prove -host localhost -dbname postgres -username postgres *_test.sql env : PGPASSWORD : postgresĪ repository with a working code is available here: github. plugin directory - name : Check out repository code uses : with : path : plugin # Install PHP of required version.#. branches: 'rspec' jobs: test: runs-on: ubuntu-latest services: postgres: image: postgres:11-alpine ports: - '5432:5432' env: POSTGRESDB: github. The reason is that I am unable to provide the correct URI for the. strategy : fail-fast : false matrix : php : moodle-branch : database : # There is an alternative way allowing to define explicitly define which php, moodle-branch # and database to use: # matrix: # include: # - php: '8.0' # moodle-branch: 'MOODLE_401_STABLE' # database: pgsql # - php: '8.0' # moodle-branch: 'MOODLE_400_STABLE' # database: mariadb # - php: '7.4' # moodle-branch: 'MOODLE_311_STABLE' # database: pgsql steps : # Check out this repository code in. I am implementing GitHub actions for the first time and I am unable to pass the test successfully for my Ruby On Rails project. If we add # another branch, total number of builds will become 12. In the last blog post on series Terraform on Google Cloud, i deployed a VM instance on GCP using Terraform and automated CI pipeline using Github Actions with. For example below 6 builds will be created in # total (7.4-pgsql, 7.4-mariadb, 8.0-pgsql, 8.0-mariadb, etc.). For each combination a separate # build will be created. ubuntu-latest container: node:10.18-jessie services: postgres: image: postgres steps:-name: Check out repository code uses: actions/checkoutv4-name: Install dependencies run: npm ci-name: Connect to PostgreSQL run: node client. This is a list of PHP versions, databases and # branches to test our project against. GitHub Actions uses YAML syntax to define the workflow. name: Test, Build, Deploy runs-on: ubuntu-latest services: postgres: image: postgres:13. For Github Actions we have the following checklist: OIDC IAM Build Docker. services : postgres : image : postgres:13 env : POSTGRES_USER : ' postgres' POSTGRES_HOST_AUTH_METHOD : ' trust' ports : - 5432:5432 options : -health-cmd pg_isready -health-interval 10s -health-timeout 5s -health-retries 3 mariadb : image : mariadb:10 env : MYSQL_USER : ' root' MYSQL_ALLOW_EMPTY_PASSWORD : " true" MYSQL_CHARACTER_SET_SERVER : " utf8mb4" MYSQL_COLLATION_SERVER : " utf8mb4_unicode_ci" ports : - 3306:3306 options : -health-cmd="mysqladmin ping" -health-interval 10s -health-timeout 5s -health-retries 3 # Determines build matrix. Deploy Feature Environments to Kubernetes using Github Actions. runs-on : ubuntu-22.04 # DB services you need for testing. The key is displayed as the job name # when a job name is not provided test : # Virtual environment to use. # Title of the workflow name : Moodle Plugin CI # Run this workflow every time a new commit pushed to your repository or PR # created.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |