Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'staging' into add-lending-pond-showcase
- Loading branch information
Showing
42 changed files
with
8,825 additions
and
286 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM node:lts-alpine | ||
|
||
RUN apk add --no-cache git | ||
RUN npm i -g --force yarn | ||
COPY "entrypoint.sh" "/entrypoint.sh" | ||
ENTRYPOINT ["/entrypoint.sh"] | ||
CMD ["help"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
# Build Yarn Action | ||
|
||
This github actions provides arbirary actions for the yarn cli command. | ||
The main reason for writing this was that i needed to add a fix for gits | ||
safe directory thing, see entrypoint.sh. | ||
|
||
The code mostly is taken from https://github.com/Borales/actions-yarn | ||
but simplified. Mostly removed the npm auth token stuff, which we wont need | ||
in the near future. And then the original action might have a fix for | ||
the git safedir issue built in so we might want to remove this action | ||
alltogether. | ||
|
||
|
||
To use this action | ||
name: CI | ||
on: [push] | ||
jobs: | ||
build: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: ./.github/actions/yarn-build | ||
with: | ||
cmd: install # will run `yarn install` command | ||
- uses: ./.github/actions/yarn-build | ||
with: | ||
cmd: build # will run `yarn build` command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: "GitHub Action for Yarn" | ||
description: "Wraps the yarn CLI to enable common yarn commands" | ||
branding: | ||
icon: "package" | ||
color: "blue" | ||
inputs: | ||
cmd: | ||
description: "Yarn command" | ||
required: true | ||
runs: | ||
using: "docker" | ||
image: "Dockerfile" | ||
args: | ||
- ${{ inputs.cmd }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/bin/sh | ||
set -e | ||
|
||
# had to add this line due to changes within git | ||
# see: https://github.com/actions/runner/issues/2033 | ||
git config --global --add safe.directory /github/workspace | ||
|
||
sh -c "yarn $*" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: "Yarn Build" | ||
|
||
on: | ||
push: | ||
pull_request: | ||
|
||
jobs: | ||
build: | ||
name: Build documentation | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
|
||
- name: Install | ||
uses: ./.github/actions/yarn-build | ||
with: | ||
cmd: install | ||
|
||
- name: Build | ||
uses: ./.github/actions/yarn-build | ||
with: | ||
cmd: build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.