Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: dependency updates (#268)
Browse files Browse the repository at this point in the history
  • Loading branch information
Noah authored Mar 18, 2022
1 parent 0fee1d0 commit f4c8bea
Show file tree
Hide file tree
Showing 23 changed files with 1,495 additions and 9,301 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
/.yarn/releases/** binary
/.yarn/plugins/** binary
3 changes: 0 additions & 3 deletions .github/actions/detect-env/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ runs:
- name: Determine Node Version
run: echo NODE_VERSION=$(cat .nvmrc | tr -d '\n') >> $GITHUB_ENV
shell: bash
- name: Determine Yarn Version
run: echo YARN_VERSION=$(cat .yvmrc | tr -d '\n') >> $GITHUB_ENV
shell: bash
13 changes: 8 additions & 5 deletions .github/workflows/cicd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
workflow_dispatch:

env:
CI: 1

jobs:
client:
if: "!contains(github.event.head_commit.message, 'skip ci')"
Expand All @@ -23,7 +26,7 @@ jobs:
uses: actions/cache@v2
with:
path: ./client/node_modules
key: ${{ env.NODE_VERSION }}-${{ env.YARN_VERSION }}-${{ hashFiles('./client/yarn.lock') }}
key: ${{ env.NODE_VERSION }}-${{ hashFiles('./client/yarn.lock') }}
- name: lint client
uses: ./.github/actions/lint
with:
Expand Down Expand Up @@ -60,7 +63,7 @@ jobs:
uses: actions/cache@v2
with:
path: ./service/node_modules
key: ${{ env.NODE_VERSION }}-${{ env.YARN_VERSION }}-${{ hashFiles('./service/yarn.lock') }}
key: ${{ env.NODE_VERSION }}-${{ hashFiles('./service/yarn.lock') }}
- name: lint service
uses: ./.github/actions/lint
with:
Expand Down Expand Up @@ -107,7 +110,7 @@ jobs:
uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ env.NODE_VERSION }}-${{ env.YARN_VERSION }}-${{ hashFiles('yarn.lock') }}
key: ${{ env.NODE_VERSION }}-${{ hashFiles('yarn.lock') }}
- name: install dependencies
run: make install
- name: package artifacts
Expand Down Expand Up @@ -147,7 +150,7 @@ jobs:
uses: actions/cache@v2
with:
path: ./node_modules
key: ${{ env.NODE_VERSION }}-${{ env.YARN_VERSION }}-${{ hashFiles('yarn.lock') }}
key: ${{ env.NODE_VERSION }}-${{ hashFiles('yarn.lock') }}
- name: install dependencies
run: make install
- name: package artifacts
Expand Down Expand Up @@ -196,7 +199,7 @@ jobs:
uses: actions/cache@v2
with:
path: ./website/node_modules
key: ${{ env.NODE_VERSION }}-${{ env.YARN_VERSION }}-${{ hashFiles('./website/yarn.lock') }}
key: ${{ env.NODE_VERSION }}-${{ hashFiles('./website/yarn.lock') }}
- name: Install dependencies
if: steps.node-modules-cache.outputs.cache-hit != 'true'
run: yarn install --frozen-lockfile
Expand Down
17 changes: 15 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
# IDE
.idea/

# OS
.DS_Store

.serverless/
artifacts/
node_modules/
.DS_Store
yarn-error.log
npm-debug.log
dist/
Expand All @@ -13,13 +17,22 @@ example/repo/output/
# client
client/bin

# service
.cache

serverless_chromium.zip
headless-chromium
release-archive

.terraform/
.terraform.lock.hcl

.yarn/
.yarn/*
!.yarn/patches
!.yarn/releases
!.yarn/plugins
!.yarn/versions
!.yarn/sdks
.pnp.*

output
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v14.17.6
v14.19.0
785 changes: 785 additions & 0 deletions .yarn/releases/yarn-3.2.0.cjs

Large diffs are not rendered by default.

631 changes: 0 additions & 631 deletions .yarn/releases/yarn-berry.cjs

This file was deleted.

2 changes: 1 addition & 1 deletion .yarnrc.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodeLinker: node-modules

yarnPath: .yarn/releases/yarn-berry.cjs
yarnPath: .yarn/releases/yarn-3.2.0.cjs
Binary file added client/.yarn/install-state.gz
Binary file not shown.
12 changes: 6 additions & 6 deletions client/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,22 +13,22 @@ else
endif

ESLINT_ARGS=--max-warnings 0 $(ESLINT_EXTRA_ARGS)
NODE_MODULES_BIN := ./node_modules/.bin
ESLINT := $(NODE_MODULES_BIN)/eslint $(ESLINT_ARGS)
PKG := $(NODE_MODULES_BIN)/pkg

.PHONY: install
install: check-versions
yarn install

.PHONY: build-docker
build-docker:
ifndef CI
@make package
endif
@echo "Building Docker Container"
docker build . -t ghcr.io/tophat/sanity-runner-client

.PHONY: package
package:
$(PKG) . --out-path bin/
yarn pkg . --out-path bin/

# ----- Helpers -----
.PHONY: check-versions
Expand All @@ -42,11 +42,11 @@ clean:

.PHONY: lint
lint:
$(ESLINT) .
yarn eslint $(ESLINT_ARGS) .

.PHONY: lint-fix
lint-fix:
$(ESLINT) --fix .
yarn eslint $(ESLINT_ARGS) --fix .

PHONY: publish-docker
publish-docker:
Expand Down
Loading

0 comments on commit f4c8bea

Please sign in to comment.