-
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.
Merge pull request #1 from grokku/alp-15-document-github-action-on-pa…
…rallax-scroller-project docs: ✏️ Document GitHub actions
- Loading branch information
Showing
17 changed files
with
528 additions
and
167 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 |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
node_modules | ||
dist |
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 |
---|---|---|
@@ -1,22 +1,31 @@ | ||
name: Lint | ||
|
||
# Run this workflow on pushes to main | ||
on: push | ||
|
||
# A workflow run is made up of one or more sequential or parallel jobs | ||
jobs: | ||
# This workflow contains a single job called "eslint" | ||
eslint: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps are a sequence of tasks that will be executed as part of the job | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
# Check out repository under $GITHUB_WORKSPACE, so the job can access it | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
# Eslint runs on Node.js — we need to set this up first | ||
- name: Set up Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
# Install dependencies, using cache | ||
- name: Install | ||
uses: bahmutov/npm-install@v1 | ||
|
||
- name: Run Linter | ||
run: npm run lint | ||
# Run eslint | ||
- name: Run Linter | ||
run: npm run lint |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,34 @@ | ||
name: Test | ||
|
||
# Run this workflow Pull Request action to main | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
# A workflow run is made up of one or more sequential or parallel jobs | ||
jobs: | ||
# This workflow contains a single job called "test" | ||
test: | ||
# The type of runner that the job will run on | ||
runs-on: ubuntu-latest | ||
|
||
# Steps are a sequence of tasks that will be executed as part of the job | ||
steps: | ||
# Check out repository under $GITHUB_WORKSPACE, so the job can access it | ||
- name: Checkout code | ||
uses: actions/checkout@v4 | ||
|
||
- name: Set up Node.js | ||
# Tests run on Node.js — we need to set this up first | ||
- name: Setup Node.js | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
node-version: 20 | ||
|
||
- name: Install dependencies | ||
run: npm install | ||
# Install dependencies, using cache | ||
- name: Install | ||
uses: bahmutov/npm-install@v1 | ||
|
||
# Run tests | ||
- name: Test | ||
run: npm run test |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Oops, something went wrong.