good morning!!!!

Skip to content
Snippets Groups Projects
config.yml 1.78 KiB
Newer Older
Anmol Sethi's avatar
Anmol Sethi committed
version: 2
jobs:
  fmt:
    docker:
      - image: nhooyr/websocket-ci@sha256:77e37211ded3c528e947439e294fbfc03b4fb9f9537c4e5198d5b304fd1df435
Anmol Sethi's avatar
Anmol Sethi committed
    steps:
      - checkout
      - restore_cache:
          keys:
            - go-v4-{{ checksum "mod/go.sum" }}
Anmol Sethi's avatar
Anmol Sethi committed
            # Fallback to using the latest cache if no exact match is found.
            - go-v4-
      - run: ./mod/ci/fmt.sh
Anmol Sethi's avatar
Anmol Sethi committed
      - save_cache:
          paths:
Anmol Sethi's avatar
Anmol Sethi committed
            - /root/.cache/go-build
          key: go-v4-{{ checksum "mod/go.sum" }}
Anmol Sethi's avatar
Anmol Sethi committed

  lint:
    docker:
      - image: nhooyr/websocket-ci@sha256:77e37211ded3c528e947439e294fbfc03b4fb9f9537c4e5198d5b304fd1df435
Anmol Sethi's avatar
Anmol Sethi committed
    steps:
      - checkout
      - restore_cache:
          keys:
            - go-v4-{{ checksum "mod/go.sum" }}
Anmol Sethi's avatar
Anmol Sethi committed
            # Fallback to using the latest cache if no exact match is found.
            - go-v4-
      - run: ./mod/ci/lint.sh
Anmol Sethi's avatar
Anmol Sethi committed
      - save_cache:
          paths:
Anmol Sethi's avatar
Anmol Sethi committed
            - /root/.cache/go-build
          key: go-v4-{{ checksum "mod/go.sum" }}
Anmol Sethi's avatar
Anmol Sethi committed

  test:
    docker:
      - image: nhooyr/websocket-ci@sha256:77e37211ded3c528e947439e294fbfc03b4fb9f9537c4e5198d5b304fd1df435
Anmol Sethi's avatar
Anmol Sethi committed
    steps:
      - checkout
      - restore_cache:
          keys:
            - go-v4-{{ checksum "mod/go.sum" }}
Anmol Sethi's avatar
Anmol Sethi committed
            # Fallback to using the latest cache if no exact match is found.
            - go-v4-
      - run: ./mod/ci/test.sh
      - store_artifacts:
          path: mod/ci/out
          destination: out
      - save_cache:
          paths:
            - /root/.cache/go-build
          key: go-v4-{{ checksum "mod/go.sum" }}
      - store_test_results:
          path: mod/ci/out
Anmol Sethi's avatar
Anmol Sethi committed
workflows:
  version: 2
  fmt:
    jobs:
      - fmt
  lint:
    jobs:
      - lint
  test:
    jobs:
      - test