forked from iguazio/dashboard-react-controls
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tests [UI] Add Initial Workflow to Enable GitHub Actions for Forked R…
…epositories (iguazio#319)
- Loading branch information
1 parent
e62e56d
commit b97f006
Showing
2 changed files
with
77 additions
and
0 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,73 @@ | ||
# Copyright 2019 Iguazio | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
# | ||
name: CI | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- development | ||
- master | ||
- '[0-9]+.[0-9]+.[0-9]+' # Matches branches like '1.2.3' | ||
- '[0-9]+.[0-9]+.[0-9]+_.*' # Matches branches like '1.7.0_cpj_mm' | ||
|
||
jobs: | ||
check-copyright: | ||
name: Check Copyright Existence | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: denoland/setup-deno@v1 | ||
with: | ||
deno-version: v1.x | ||
- name: Check | ||
run: | | ||
deno run --allow-read https://deno.land/x/license_checker@v3.2.3/main.ts | ||
- name: Instructions For Adding Copyright | ||
if: ${{ failure() }} | ||
run: | | ||
echo " | ||
Please add the following lines to the top of your code: | ||
.yaml/Dockerfile/.yml/.py : | ||
# Copyright 2018 Iguazio | ||
# | ||
# Licensed under the Apache License, Version 2.0 (the "License"); | ||
# you may not use this file except in compliance with the License. | ||
# You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, software | ||
# distributed under the License is distributed on an "AS IS" BASIS, | ||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
.js : | ||
/* | ||
Copyright 2019 Iguazio Systems Ltd. | ||
Licensed under the Apache License, Version 2.0 (the "License") with | ||
an addition restriction as set forth herein. You may not use this | ||
file except in compliance with the License. You may obtain a copy of | ||
the License at http://www.apache.org/licenses/LICENSE-2.0. | ||
Unless required by applicable law or agreed to in writing, software | ||
distributed under the License is distributed on an "AS IS" BASIS, | ||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or | ||
implied. See the License for the specific language governing | ||
permissions and limitations under the License. | ||
In addition, you may not use the software for any purposes that are | ||
illegal under applicable law, and the grant of the foregoing license | ||
under the Apache 2.0 license is conditioned upon your compliance with | ||
such restriction. | ||
*/ | ||
" |
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,4 @@ | ||
{ | ||
"**/*.{js,stories.js,yaml,yml}": "Licensed under the Apache License, Version 2.0", | ||
"ignore": ["dist/"] | ||
} |