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

Replace circleci with github actions #360

Merged
merged 1 commit into from
Sep 16, 2024
Merged
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
57 changes: 0 additions & 57 deletions .circleci/config.yml

This file was deleted.

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

on:
pull_request:
types:
- opened
- reopened
- synchronize

concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

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
Loading