mirror of
https://github.com/hashicorp/setup-terraform.git
synced 2025-12-16 08:32:34 +00:00
Initial commit
This commit is contained in:
commit
cd5e05ffbf
23 changed files with 26743 additions and 0 deletions
37
.github/workflows/continuous-integration.yml
vendored
Normal file
37
.github/workflows/continuous-integration.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
|||
name: 'Continuous Integration'
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
pull_request:
|
||||
|
||||
jobs:
|
||||
test:
|
||||
name: Test
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, windows-latest, macos-latest]
|
||||
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v2
|
||||
|
||||
- name: Setup Node.js 12.x
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: '12.x'
|
||||
|
||||
- name: Install
|
||||
run: npm clean-install
|
||||
|
||||
- name: Verify
|
||||
if: runner.os == 'Linux'
|
||||
run: |
|
||||
npm run build
|
||||
# Fail if "npm run build" generated new changes in dist
|
||||
git update-index --refresh dist/* && git diff-index --quiet HEAD dist
|
||||
|
||||
- name: Test
|
||||
run: npm test
|
||||
Loading…
Add table
Add a link
Reference in a new issue