This repository has been archived by the owner on Oct 13, 2023. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 92
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
Showing
10 changed files
with
5,177 additions
and
925 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,18 +1,49 @@ | ||
name: Continuous integration | ||
|
||
on: [pull_request, push] | ||
on: [push] | ||
|
||
jobs: | ||
check_pr: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- name: Create npm configuration | ||
run: echo "//npm.pkg.github.com/:_authToken=${token}" >> ~/.npmrc | ||
env: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: "npm ci" | ||
run: npm ci | ||
- uses: actions/checkout@v1 | ||
- run: npm ci | ||
- run: npm run build | ||
- run: npm run test | ||
|
||
- name: "npm run build" | ||
run: npm run build | ||
install_stable: | ||
runs-on: ubuntu-latest | ||
needs: check_pr | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: ./ | ||
with: | ||
toolchain: stable | ||
|
||
- name: "npm run test" | ||
run: npm run test | ||
install_nightly: | ||
runs-on: ubuntu-latest | ||
needs: check_pr | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: ./ | ||
with: | ||
profile: minimal | ||
toolchain: nightly | ||
components: rustfmt, clippy | ||
|
||
install_stable_in_docker: | ||
runs-on: ubuntu-latest | ||
container: ubuntu:latest # Docker image, not the GitHub Actions VM | ||
needs: check_pr | ||
steps: | ||
# `rustup` will need `curl` or `wget` later | ||
- run: apt-get update && apt-get install -y curl | ||
- uses: actions/checkout@v1 | ||
- uses: ./ | ||
with: | ||
toolchain: stable |
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 @@ | ||
@actions-rs:registry=https://npm.pkg.github.com |
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
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
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.