Skip to content
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

Test CI #361

Closed
wants to merge 2 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 51 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
version: 2.1
description: Fauna Shell Tests

executors:
core:
resource_class: large
docker:
- image: cimg/node:18.20

environment:
FAUNA_SECRET: secret
FAUNA_DOMAIN: core
FAUNA_SCHEME: http
FAUNA_PORT: 8443

commands:
build_and_test:
description: "Run fauna-shell tests"
steps:
- checkout

- run:
name: Install dependencies
command: yarn install

- run:
name: Run Tests
command: |
export FAUNA_SECRET=fn1234
export FAUNA_DOMAIN=db.fauna.com
export FAUNA_SCHEME=https
export FAUNA_PORT=443
export DEBUG=oclif-test
yarn test

- store_artifacts:
path: coverage

jobs:
fauna-shell-tests:
executor:
name: core
steps:
- build_and_test

workflows:
version: 2
build_and_test:
jobs:
- fauna-shell-tests:
context: faunadb-drivers
39 changes: 0 additions & 39 deletions .github/workflows/ci.yml

This file was deleted.

4 changes: 1 addition & 3 deletions test/commands/eval.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,11 @@ describe("eval", () => {
});

describe("eval in v10", () => {
it("runs eval in shell format", async () => {
it("runs eval", async () => {
const { stdout } = await runCommand(
withOpts([
"eval",
"\"{ exists: Collection.byName('doesnt_exist').exists() }\"",
"--format",
"shell",
])
);
expect(stdout).to.equal("{\n exists: false\n}\n");
Expand Down
2 changes: 1 addition & 1 deletion test/integ/schema.test.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { expect } from "chai";
import { cleanupDBs, evalOk, newDB, shellOk, stripMargin } from "./base";

describe("fauna schema staged commands", () => {
describe.skip("fauna schema staged commands", () => {
// Cleanup after ourselves.
after(async function () {
await cleanupDBs();
Expand Down