Rename to gel #133
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: 'build-test' | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- main | |
- 'releases/*' | |
jobs: | |
build: # make sure build/ci work properly | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
steps: | |
- uses: actions/checkout@v2 | |
- run: | | |
npm install | |
- run: | | |
npm run all | |
test: # make sure the action works on a clean machine without building | |
name: Test CLI and server installation (CLI ${{ matrix.cli-version }} / server ${{ matrix.server-version }} / OS ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
cli-version: [stable, nightly] | |
server-version: [stable, nightly, 3.0-rc.1] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: ./ | |
with: | |
cli-version: ${{ matrix.cli-version }} | |
server-version: ${{ matrix.server-version }} | |
- name: Verify installation | |
run: | | |
gel --version | |
gel-server --version | |
testproject: | |
name: Test integration with gel projects (CLI ${{ matrix.cli-version }} / server ${{ matrix.server-version }} / OS ${{ matrix.os }}) | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest] | |
cli-version: [stable, nightly] | |
server-version: [stable, nightly, 3.0-rc.1] | |
fail-fast: false | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create gel.toml | |
run: | | |
echo -e '[edgedb]\nserver-version = "3.0-rc.1"' >> gel.toml | |
- uses: ./ | |
with: | |
cli-version: ${{ matrix.cli-version }} | |
server-version: ${{ matrix.server-version }} | |
- name: Verify installation | |
run: | | |
gel query "SELECT 'Hello from GitHub Actions'" | |
testprojectlink: | |
name: Test integration with gel projects using remote instances (CLI ${{ matrix.cli-version }}) | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
cli-version: [stable, nightly] | |
fail-fast: false | |
services: | |
gel: | |
image: gel/gel:3 | |
env: | |
gel_SERVER_SECURITY: insecure_dev_mode | |
ports: | |
- 5656:5656 | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Create gel.toml | |
run: | | |
echo -e '[edgedb]\nserver-version = "3.0-rc.1"' >> gel.toml | |
- uses: ./ | |
with: | |
server-dsn: gel://localhost:5656 | |
cli-version: ${{ matrix.cli-version }} | |
server-version: none | |
- name: Verify installation | |
run: | | |
gel query "SELECT 'Hello from GitHub Actions'" | |
testwin: | |
runs-on: windows-latest | |
steps: | |
- uses: Vampire/setup-wsl@v1 | |
with: | |
additional-packages: | |
ca-certificates | |
curl | |
- uses: actions/checkout@v2 | |
- uses: ./ | |
- name: Verify installation | |
shell: wsl-bash {0} | |
run: | | |
gel --version | |
gel-server --version |