Skip to content

code cleanup

code cleanup #21

Workflow file for this run

---
name: ci
on:
push:
branches: [master]
paths:
- '**.js'
pull_request:
branches: [master]
paths:
- '**.js'
env:
CI: true
PACKAGES: 'language-hcl'
VERSION: '1.8.7'
jobs:
lint-and-test:
strategy:
matrix:
os: [ubuntu-22.04]
channel: [beta]
runs-on: ${{ matrix.os }}
steps:
- name: checkout
uses: actions/checkout@v3
- uses: UziTech/action-setup-atom@v3
with:
version: ${{ matrix.channel }}
- name: atom version
run: atom -v
- name: apm version
run: apm -v
- name: install dependencies
run: apm install && apm install ${PACKAGES} && apm clean
- name: lint source and spec
run: ./node_modules/.bin/eslint lib spec || true
- name: install packer
run: curl -o packer.zip https://releases.hashicorp.com/packer/${VERSION}/packer_${VERSION}_linux_amd64.zip && sudo unzip packer.zip -d /usr/bin/
- name: debug path precedence to prioritize my packer over baked in packer
run: echo "$PATH"
- name: run tests
run: atom --test spec