Skip to content

Commit

Permalink
Add Setup Node.js Python Rust
Browse files Browse the repository at this point in the history
  • Loading branch information
peaceiris committed Aug 30, 2021
1 parent 74cbadd commit 524d78d
Showing 1 changed file with 92 additions and 1 deletion.
93 changes: 92 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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'

Expand All @@ -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/[email protected]
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/[email protected]
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/[email protected]
```



## Setup [goreleaser/goreleaser]

Install `goreleaser` to a GitHub Actions Ubuntu virtual environment.
Expand Down

0 comments on commit 524d78d

Please sign in to comment.