Skip to content

github actions - julia 1.10.0 #82

github actions - julia 1.10.0

github actions - julia 1.10.0 #82

Workflow file for this run

name: CI

Check failure on line 1 in .github/workflows/actions.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/actions.yml

Invalid workflow file

Invalid type for `job.strategy`
on: [pull_request, push]
env:
JULIA_VERSION: 1.10.0
jobs:
Test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
julia-version: [{{ env.JULIA_VERSION }}]
julia-arch: [x64]
os: [ubuntu-latest]
include:
- julia-version: nightly
os: ubuntu-latest
- julia-version: 1.6.7
os: ubuntu-latest
services:
postgres:
image: postgres:13
ports:
- 5432:5432
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
mysql:
image: mysql:5.7
ports:
- 3306:3306
env:
MYSQL_ALLOW_EMPTY_PASSWORD: yes
MYSQL_DATABASE: mysqltest
options: --health-cmd "mysqladmin ping" --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Setup PostgreSQL
env:
POSTGRES_HOST: localhost
POSTGRES_PORT: 5432
PGPASSWORD: postgres
run: |
psql --version
netstat -nlp | grep 5432
psql -h localhost -U postgres -tc 'SHOW server_version'
psql -h localhost -U postgres -c '\conninfo'
psql -h localhost -U postgres -c "CREATE DATABASE postgresqltest;"
psql -h localhost -U postgres -c "CREATE DATABASE postgresqltest2;"
- name: Setup MySQL
run: |
mysql --version
mysqladmin -h 127.0.0.1 -uroot variables | grep socket
mysql -h 127.0.0.1 -uroot -e 'show variables like "socket";'
mysql -h 127.0.0.1 -uroot -e 'CREATE DATABASE IF NOT EXISTS mysqltest;'
mysql -h 127.0.0.1 -uroot -e 'GRANT ALL PRIVILEGES ON mysqltest.* TO "root"@"localhost"'
- uses: actions/checkout@master
- name: runtests
env:
PGPASSWORD: postgres
MYSQL_HOST: 127.0.0.1
MYSQL_ROOT_PASWORD:
run: |
julia --project=. -e 'using Pkg; Pkg.test()'
- name: coverage
if: matrix.julia-version == {{ env.JULIA_VERSION }} && github.event.ref == 'refs/heads/master'
run: |
julia --project=. -e 'using Pkg; Pkg.test(coverage=true)'
julia --project=. -e 'using Pkg; Pkg.add("Coverage"); using Coverage; cov = Coverage.process_folder(); mkdir("coverage"); Coverage.LCOV.writefile("coverage/lcov.info", cov)'
- uses: codecov/codecov-action@v1
# RunForMacOS:
# needs: Test
# if: github.event.ref == 'refs/heads/master'
# runs-on: macos-latest
# steps:
# - uses: actions/checkout@master
# - name: runtests
# run: |
# julia --project=. -e 'using Pkg; Pkg.test()'
RunForWindows:
needs: Test
if: github.event.ref == 'refs/heads/master'
runs-on: windows-latest
steps:
- uses: actions/checkout@master
- name: runtests
run: |
julia --project=. -e 'using Pkg; Pkg.test()'