Skip to content

Commit

Permalink
fix: lock file maintenance (#38)
Browse files Browse the repository at this point in the history
Co-authored-by: GitHub Actions <[email protected]>
  • Loading branch information
dword-design and actions-user authored Apr 13, 2021
1 parent a8823bf commit 476c0c6
Show file tree
Hide file tree
Showing 10 changed files with 1,283 additions and 2,122 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
* text=auto eol=lf
*.glb filter=lfs diff=lfs merge=lfs -text
*.jpg filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
11 changes: 11 additions & 0 deletions .github/DEPRECATED_DEPENDENCIES_ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
---
title: Deprecated dependencies
labels: maintenance
---
The following dependencies are deprecated:

{% for dependency in env.DEPRECATED.split(',') %}
- **{{ dependency }}**
{% endfor %}

Check out the [build]({{ env.RUN_URL }}) for details.
7 changes: 5 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,15 @@ jobs:
- uses: actions/checkout@v2
with:
lfs: true
ref: ${{ github.event.pull_request.head.repo.full_name == github.repository &&
github.event.pull_request.head.ref || '' }}
- uses: actions/setup-node@v2
with:
node-version: 12
- run: git config --global user.email "[email protected]"
- run: git config --global user.name "GitHub Actions"
- run: yarn --frozen-lockfile
- run: yarn checkUnknownFiles
- run: yarn lint
- env:
GITHUB_REPOSITORY: ${{ secrets.GITHUB_REPOSITORY }}
Expand Down Expand Up @@ -48,7 +51,6 @@ jobs:
uses: actions/upload-artifact@v2
with:
path: "**/__image_snapshots__/__diff_output__"
- run: yarn checkUnknownFiles
- if: matrix.os == 'ubuntu-latest' && matrix.node == 12
uses: codecov/codecov-action@v1
with:
Expand All @@ -70,6 +72,7 @@ jobs:
- ubuntu-latest
name: build
on:
pull_request: {}
push:
branches:
- "**"
- master
30 changes: 30 additions & 0 deletions .github/workflows/deprecated-dependencies.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
jobs:
run:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
lfs: true
- continue-on-error: true
id: check-deprecated-js-deps
uses: tinovyatkin/action-check-deprecated-js-deps@v1
- env:
DEPRECATED: ${{ steps.check-deprecated-js-deps.outputs.deprecated }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
RUN_URL: https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}
id: create-deprecation-issue
if: ${{ steps.check-deprecated-js-deps.outputs.deprecated }}
uses: JasonEtco/create-an-issue@v2
with:
filename: .github/DEPRECATED_DEPENDENCIES_ISSUE_TEMPLATE.md
update_existing: true
- if: ${{ !steps.check-deprecated-js-deps.outputs.deprecated &&
steps.create-deprecation-issue.outputs.number }}
uses: peter-evans/close-issue@v1
with:
comment: Auto-closing the issue
issue-number: ${{ steps.create-deprecation-issue.outputs.number }}
name: deprecated-dependencies
on:
schedule:
- cron: 0 5 * * MON
5 changes: 4 additions & 1 deletion .gitpod.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ FROM gitpod/workspace-full:latest
RUN curl -s https://packagecloud.io/install/repositories/github/git-lfs/script.deb.sh | sudo bash
RUN sudo apt-get install git-lfs
RUN git lfs install
RUN echo "\nexport PATH=$(yarn global bin):\$PATH" >> /home/gitpod/.bashrc
RUN yarn global add gitpod-env-per-project @babel/core @babel/node
RUN sudo apt-get install -y graphviz

# Puppeteer dependencies
RUN sudo apt-get update && sudo apt-get install -y libgtk-3-0 libx11-xcb1 libnss3 libxss1 libasound2 libgbm1 libxshmfence1
RUN sudo apt-get update && sudo apt-get install -y libgtk-3-0 libx11-xcb1 libnss3 libxss1 libasound2 libgbm1 libxshmfence1
3 changes: 1 addition & 2 deletions .gitpod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ image:
tasks:
- before: sudo docker-up
name: Docker Deamon
- init: git lfs pull && echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN"
>>~/.npmrc && yarn --frozen-lockfile
- init: eval $(gitpod-env-per-project) && git lfs pull && yarn --frozen-lockfile
vscode:
extensions:
- [email protected]:8jjyZYuYF6yW6nwsAiulrg==
Expand Down
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,11 @@
</a><a href="https://david-dm.org/dword-design/mock-argv">
<img src="https://img.shields.io/david/dword-design/mock-argv" alt="Dependency status">
</a><img src="https://img.shields.io/badge/renovate-enabled-brightgreen" alt="Renovate enabled"><br/><a href="https://gitpod.io/#https://github.com/dword-design/mock-argv">
<img src="https://gitpod.io/button/open-in-gitpod.svg" alt="Open in Gitpod">
<img
src="https://gitpod.io/button/open-in-gitpod.svg"
alt="Open in Gitpod"
height="32"
>
</a><a href="https://www.buymeacoffee.com/dword">
<img
src="https://www.buymeacoffee.com/assets/img/guidelines/download-assets-sm-2.svg"
Expand Down Expand Up @@ -87,7 +91,7 @@ test('works', async () => {
<!-- LICENSE/ -->
## Contribute

Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/dword-design/mock-argv/issues) or [pull request](https://github.com/dword-design/mock-argv/pulls)! ⚙️
Are you missing something or want to contribute? Feel free to file an [issue](https://github.com/dword-design/mock-argv/issues) or a [pull request](https://github.com/dword-design/mock-argv/pulls)! ⚙️

## Support

Expand Down
1 change: 1 addition & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ export default async (args, func) => {
func = args
args = []
}

const oldArgv = process.argv
process.argv = [...oldArgv.slice(0, 2), ...args]
try {
Expand Down
1 change: 1 addition & 0 deletions src/index.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export default {
'foo',
'bar',
])

return resolve()
}, 100)
)
Expand Down
Loading

0 comments on commit 476c0c6

Please sign in to comment.