Skip to content

Commit

Permalink
chore: migrate from Circle to GHA (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
Bryce Kalow authored Mar 14, 2023
1 parent b684ab9 commit 1cdc5a5
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 11 deletions.
11 changes: 0 additions & 11 deletions .circleci/config.yml

This file was deleted.

7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
version: 2

updates:
- package-ecosystem: 'github-actions'
directory: '/'
schedule:
interval: 'weekly'
13 changes: 13 additions & 0 deletions .github/workflows/actionlint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Lint GitHub Actions Workflows
on:
push:
branches: [main]
pull_request:

jobs:
actionlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- name: 'Check workflow files'
uses: docker://rhysd/actionlint:1.6.23
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Test
on:
pull_request:
branches: [main]
push:
branches: [main]

permissions:
contents: read

jobs:
node_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
- id: npm-cache-dir
run: echo "dir=$(npm config get cache)" >> "$GITHUB_OUTPUT"
- uses: actions/cache@69d9d449aced6a2ede0bc19182fadc3a0a42d2b0 # v3.2.6
with:
path: '${{ steps.npm-cache-dir.outputs.dir }}'
key: "${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}"
restore-keys: '${{ runner.os }}-node-'
- run: npm ci
- run: npm run test
1 change: 1 addition & 0 deletions CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
@hashicorp/web-platform

0 comments on commit 1cdc5a5

Please sign in to comment.