Skip to content

Commit

Permalink
Setup PAWS (initial version)
Browse files Browse the repository at this point in the history
  • Loading branch information
ghen committed Jun 27, 2022
1 parent 45a4138 commit 3d7bed0
Show file tree
Hide file tree
Showing 11 changed files with 41,742 additions and 1 deletion.
1 change: 1 addition & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
dist/
18 changes: 18 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"env": {
"commonjs": true,
"es6": true,
"jest": true,
"node": true
},
"extends": "eslint:recommended",
"globals": {
"Atomics": "readonly",
"SharedArrayBuffer": "readonly"
},
"parserOptions": {
"ecmaVersion": 2018
},
"rules": {
}
}
36 changes: 36 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Tests

on:
push:
branches:
- master
pull_request:

defaults:
run:
shell: bash

jobs:
test:
name: Test
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [macos-latest, windows-latest, ubuntu-latest]
version: [latest, 0.3.0]

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup PAWS CLI
uses: ./
with:
paws-version: ${{ matrix.version }}
token: ${{ secrets.PAWS_REPO_TOKEN }}

- name: Verify installation
run: |
export PAWS_CS_VERSION=$( paws-compose --version )
export PAWS_HT_VERSION=$( paws-humanitec --version )
90 changes: 90 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,90 @@
node_modules/

# Rest of the file pulled from https://github.com/github/gitignore/blob/master/Node.gitignore
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
jspm_packages/

# TypeScript v1 declaration files
typings/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variables file
.env
.env.test

# parcel-bundler cache (https://parceljs.org/)
.cache

# next.js build output
.next

# nuxt.js build output
.nuxt

# vuepress build output
.vuepress/dist

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/
19 changes: 18 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,19 @@
# setup-paws
setup-paws GitHub action

This action sets up PAWS environment for use in GitHub actions.

It downloads and caches a version of PAWS CLI tools and adds them to PATH.

# Usage

See [action.yml](action.yml)

## Basic

```yaml
steps:
- uses: actions/setup-paws@v1
with:
paws-version: '1.0'
- run: paws-humanitec version
```
12 changes: 12 additions & 0 deletions action.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: 'Setup PAWS environment'
description: 'Setup PAWS environment and add it to the PATH'
inputs:
paws-version:
description: 'The PAWS version to download and use. Supports semver spec and ranges.'
required: true
token:
description: Authorization token for the PAWS CLI tools releases repo. Since there's a default, this is typically not supplied by the user.
default: ${{ github.token }}
runs:
using: 'node16'
main: 'dist/index.js'
Loading

0 comments on commit 3d7bed0

Please sign in to comment.