From 524d78d94ca6710f0c9c6a8ed5e542cf1821e121 Mon Sep 17 00:00:00 2001 From: Shohei Ueda <30958501+peaceiris@users.noreply.github.com> Date: Mon, 30 Aug 2021 15:34:23 +0900 Subject: [PATCH] Add Setup Node.js Python Rust --- README.md | 93 ++++++++++++++++++++++++++++++++++++++++++++++++++++++- 1 file changed, 92 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 025b1bf..0bae1bf 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ jobs: steps: - uses: actions/checkout@v2 - - uses: peaceiris/workflows/setup-go@v0.9.0 + - uses: peaceiris/workflows/setup-go@v0.10.0 with: go-version: '1.17' @@ -41,6 +41,97 @@ jobs: +## Setup Node.js Project + +This composite action includes the following actions: + +- `actions/setup-node` +- `actions/cache` + +Definition: [setup-node/action.yml](https://github.com/peaceiris/workflows/blob/main/setup-node/action.yml) + +```yaml +name: CI + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - uses: peaceiris/workflows/setup-node@v0.10.0 + with: + node-version: '14.17.5' + + - run: node -v + - run: npm -v +``` + + + +## Setup Python Project + +This composite action includes the following actions: + +- `actions/setup-python` +- `actions/cache` + +Definition: [setup-python/action.yml](https://github.com/peaceiris/workflows/blob/main/setup-python/action.yml) + +```yaml +name: CI + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - uses: peaceiris/workflows/setup-python@v0.10.0 + with: + python-version: '3.8' + + - run: python3 -V + - run: python3 -m pip -V + - run: python3 -m pipenv --version +``` + + + +## Setup Rust Project + +This composite action includes the following actions: + +- `actions/cache` + +Definition: [setup-rust/action.yml](https://github.com/peaceiris/workflows/blob/main/setup-rust/action.yml) + +```yaml +name: CI + +on: + push: + pull_request: + +jobs: + test: + runs-on: ubuntu-20.04 + steps: + - uses: actions/checkout@v2 + + - uses: peaceiris/workflows/setup-rust@v0.10.0 +``` + + + ## Setup [goreleaser/goreleaser] Install `goreleaser` to a GitHub Actions Ubuntu virtual environment.