mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-27 19:06:15 -04:00
tests: Switch from Travis to Github Actions
Travis placed an unnecessary breaking restriction on our tests and failed to respond within 72 hours to our complaint. This has forced us to introduce Github Actions to manage our testing. This is hopefully a temporary measure while Travis either gets itself together or we find a non-Github requirement.
This commit is contained in:
parent
6665c4693f
commit
b71b606774
8 changed files with 291 additions and 1 deletions
24
.github/workflows/lint-package-lock.yml
vendored
Normal file
24
.github/workflows/lint-package-lock.yml
vendored
Normal file
|
@ -0,0 +1,24 @@
|
|||
name: "Lint"
|
||||
|
||||
# any branch is useful for testing before a PR is submitted
|
||||
on: [push, pull_request]
|
||||
|
||||
jobs:
|
||||
lint-package-lock:
|
||||
# run on pushes to any branch
|
||||
# run on PRs from external forks
|
||||
if: |
|
||||
(github.event_name != 'pull_request')
|
||||
|| (github.event.pull_request.head.repo.id != github.event.pull_request.base.repo.id)
|
||||
name: package-lock.json
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Install lockfile-lint
|
||||
run: npm install lockfile-lint
|
||||
|
||||
- name: Run lockfile-lint on package-lock.json
|
||||
run: npx lockfile-lint --path src/package-lock.json --validate-https --allowed-hosts npm
|
Loading…
Add table
Add a link
Reference in a new issue