-
Notifications
You must be signed in to change notification settings - Fork 934
Replace Travis CI with GitHub Actions #2812
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
87b1a35
Add GitHub Actions build
bahusoid b06c8e4
Merge branch '5.3.x' into gha
hazzik 2208c30
Update NetCoreTests.yml
bahusoid f7c427d
Add latest stable versions explicitly for Postgres and Firebird
bahusoid 5b6d36e
Delete .travis.yml
hazzik ed451f5
Merge branch '5.3.x' into gha
hazzik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
name: .NET Core | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
db: | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- DB: SqlServer2008 | ||
CONNECTION_STRING: "Server=localhost;initial catalog=nhibernate;User Id=sa;Password=P@ssw0rd;packet size=4096;" | ||
- DB: PostgreSQL | ||
CONNECTION_STRING: "Host=localhost;Username=nhibernate;Password=nhibernate;Database=nhibernate;Enlist=true;" | ||
- DB: Firebird | ||
CONNECTION_STRING: "DataSource=localhost;Database=nhibernate;User=SYSDBA;Password=nhibernate;charset=utf8;" | ||
- DB: MySQL | ||
CONNECTION_STRING: "Server=localhost;Uid=root;Password=nhibernate;Database=nhibernate;Old Guids=True;" | ||
ALLOW_FAILURE: true | ||
- DB: SQLite | ||
runs-on: ubuntu-latest | ||
continue-on-error: ${{matrix.ALLOW_FAILURE == true}} | ||
env: | ||
LANG: en-US.UTF-8 #default POSIX locale doesn't support ignore case comparisons | ||
name: ${{matrix.DB}} | ||
|
||
steps: | ||
- name: Set up SqlServer | ||
if: matrix.DB == 'SqlServer2008' | ||
run: | | ||
docker run -e "ACCEPT_EULA=Y" -e "SA_PASSWORD=P@ssw0rd" -e "MSSQL_PID=Express" -p 1433:1433 -d --name sqlexpress microsoft/mssql-server-linux:latest; | ||
|
||
- name: Set up MySQL | ||
if: matrix.DB == 'MySQL' | ||
run: | | ||
sudo service mysql stop | ||
docker run --name mysql -e MYSQL_ROOT_PASSWORD=nhibernate -e MYSQL_USER=nhibernate -e MYSQL_PASSWORD=nhibernate -e MYSQL_DATABASE=nhibernate -p 3306:3306 --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3 -d mysql:5.7 mysqld --lower_case_table_names=1 | ||
|
||
- name: Set up PostgreSQL | ||
if: matrix.DB == 'PostgreSQL' | ||
run: | | ||
docker run -d -e POSTGRES_USER=nhibernate -e POSTGRES_PASSWORD=nhibernate -e POSTGRES_DB=nhibernate -p 5432:5432 postgres:13 | ||
|
||
- name: Set up Firebird | ||
if: matrix.DB == 'Firebird' | ||
run: | | ||
docker run --name firebird -e EnableWireCrypt=true -e FIREBIRD_USER=nhibernate -e FIREBIRD_PASSWORD=nhibernate -e ISC_PASSWORD=nhibernate -e FIREBIRD_DATABASE=nhibernate -p 3050:3050 -d jacobalberty/firebird:v3.0 | ||
|
||
- uses: actions/checkout@v2 | ||
- name: Setup .NET | ||
uses: actions/setup-dotnet@v1.8.0 | ||
with: | ||
dotnet-version: 2.1.x | ||
|
||
- name: Build and Test | ||
run: | | ||
pwsh -noprofile -command "& ./build.ps1 -TaskList Set-Configuration,Test -properties @{'Database' = '${{matrix.DB}}';'ConnectionString'='${{matrix.CONNECTION_STRING}}'}" |
This file was deleted.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This line should be removed when merged to master.