-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ef78225
commit 915c5ef
Showing
5 changed files
with
28 additions
and
22 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,4 +1,4 @@ | ||
name: Container tests | ||
name: slim/container-tests | ||
|
||
on: | ||
push: | ||
|
@@ -8,10 +8,11 @@ on: | |
|
||
jobs: | ||
build-and-test-containers: | ||
name: Build and test containers | ||
name: "Build and test containers" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
|
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,4 +1,4 @@ | ||
name: Deploy to Firebase | ||
name: slim/deploy-to-firebase | ||
|
||
on: | ||
pull_request: | ||
|
@@ -8,17 +8,20 @@ on: | |
|
||
jobs: | ||
deploy-firebase: | ||
name: "Deploy to Firebase" | ||
if: "${{ github.event.pull_request.head.repo.full_name == github.repository }}" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 20.8.1 | ||
|
||
- run: sudo npm i -g yarn | ||
- name: Install Yarn | ||
run: sudo npm i -g yarn | ||
|
||
- name: Install dependencies | ||
run: 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Deploy to GitHub Pages | ||
name: slim/deploy-to-github-pages | ||
|
||
on: | ||
push: | ||
|
@@ -7,23 +7,25 @@ on: | |
branches: [master] | ||
|
||
jobs: | ||
deploy-gh-pages: | ||
name: Deploying to GitHub Pages | ||
deploy-to-github-pages: | ||
name: "Deploy to GitHub Pages" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Checkout to repository | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 20.8.1 | ||
|
||
- run: sudo npm i -g yarn | ||
- name: Install Yarn | ||
run: sudo npm i -g yarn | ||
|
||
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build and deploy with gh-pages | ||
- name: Build and deploy to GitHub Pages | ||
run: | | ||
git remote set-url origin https://git:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git | ||
yarn deploy -- -u "github-actions-bot <[email protected]>" | ||
|
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,4 +1,4 @@ | ||
name: Release | ||
name: slim/release | ||
|
||
on: | ||
push: | ||
|
@@ -7,9 +7,8 @@ on: | |
|
||
jobs: | ||
release: | ||
name: Release | ||
name: "Bump version and cut a release" | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
|
@@ -31,7 +30,7 @@ jobs: | |
- name: Zip build | ||
run: zip -r build.zip build | ||
|
||
- name: Release | ||
- name: Bump version and cut a release | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB_TOKEN }} | ||
GIT_AUTHOR_NAME: ${{ vars.RELEASE_GIT_AUTHOR_NAME }} | ||
|
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,4 +1,4 @@ | ||
name: Build and run unit tests | ||
name: slim/build-and-run-unit-tests | ||
|
||
on: | ||
push: | ||
|
@@ -8,10 +8,11 @@ on: | |
|
||
jobs: | ||
build-and-test: | ||
name: Build and run unit tests | ||
name: "Build and run unit tests" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
|
||
- name: Setup Node | ||
uses: actions/[email protected] | ||
|
@@ -21,11 +22,11 @@ jobs: | |
- name: Install dependencies | ||
run: yarn | ||
|
||
- name: Build | ||
- name: Build | ||
run: yarn build | ||
|
||
- name: Lint | ||
- name: Lint | ||
run: yarn lint | ||
|
||
- name: Test | ||
- name: Test | ||
run: yarn test |