Skip to content

Commit 858e0b4

Browse files
authored
Add copilot-setup-steps workflow and Copilot instructions (#286)
1 parent 153d661 commit 858e0b4

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed

.github/copilot-instructions.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copilot Instructions
2+
3+
Every PR must have no errors from:
4+
5+
```
6+
bundle exec rubocop
7+
bundle exec rspec
8+
```
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Copilot Setup Steps
2+
3+
# Automatically run the setup steps when they are changed to allow for easy validation, and
4+
# allow manual testing through the repository's "Actions" tab
5+
on:
6+
workflow_dispatch:
7+
push:
8+
paths:
9+
- .github/workflows/copilot-setup-steps.yml
10+
pull_request:
11+
paths:
12+
- .github/workflows/copilot-setup-steps.yml
13+
14+
jobs:
15+
copilot-setup-steps:
16+
runs-on: ubuntu-latest
17+
permissions:
18+
contents: read
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Set up Ruby
24+
uses: ruby/setup-ruby@v1
25+
with:
26+
ruby-version: head
27+
28+
- name: Use ar_main as the Gemfile
29+
run: bundle config --global gemfile gemfiles/ar_main.gemfile
30+
31+
- name: Install dependencies
32+
run: bundle install

0 commit comments

Comments
 (0)