Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
macmv committed Sep 13, 2024
1 parent 59878ea commit 6e4ee81
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 60 deletions.
57 changes: 0 additions & 57 deletions .circleci/config.yml

This file was deleted.

29 changes: 29 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: CI
on: [push]

jobs:
build:
name: Test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Node.js 18.x
uses: actions/setup-node@v3
with:
node-version: 18.x

- name: Install
uses: borales/actions-yarn@v4
with:
cmd: install

- name: Tests
uses: borales/actions-yarn@v4
env:
FAUNA_SECRET: ${{ secrets.FAUNA_SECRET }}
FAUNA_DOMAIN: ${{ secrets.FAUNA_DOMAIN }}
FAUNA_SCHEME: ${{ secrets.FAUNA_SCHEME }}
FAUNA_PORT: ${{ secrets.FAUNA_PORT }}
with:
cmd: test
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@
"prepack": "yarn build && oclif manifest",
"pretest": "yarn fixlint",
"local-test": "export $(cat .env | xargs); mocha \"test/**/*.test.{js,ts}\"",
"test": "export $(cat .env.test | xargs); c8 -r html mocha --forbid-only \"test/**/*.test.{js,ts}\"",
"test": "c8 -r html mocha --forbid-only \"test/**/*.test.{js,ts}\"",
"lint": "eslint .",
"fixlint": "eslint . --fix",
"version": "oclif-dev readme && git add README.md",
Expand Down
6 changes: 4 additions & 2 deletions test/commands/eval.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,11 +97,13 @@ describe("eval", () => {
});

describe("eval in v10", () => {
it("runs eval", async () => {
it("runs eval in shell format", 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 Expand Up @@ -182,7 +184,7 @@ function mockQuery(api) {
.post("/", matchFqlReq(q.Now()))
.reply(200, { resource: new Date() })
.post("/", matchFqlReq(q.Paginate(q.Collections())))
.reply(200, function () {
.reply(200, function() {
const auth = this.req.headers.authorization.split(" ")[1].split(":");
expect(this.req.headers["x-fauna-shell-builtin"]).to.not.exist;
return {
Expand Down

0 comments on commit 6e4ee81

Please sign in to comment.