Skip to content

Commit

Permalink
v2.0.0: bump to node16
Browse files Browse the repository at this point in the history
from node12
  • Loading branch information
DigiPie committed Feb 8, 2023
1 parent ab46c38 commit 624aa3a
Show file tree
Hide file tree
Showing 8 changed files with 2,819 additions and 203 deletions.
16 changes: 11 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ jobs:
runs-on: ubuntu-latest
name: Test mongo-action
steps:
- name: Install mongosh
run: |
sudo apt-get update
sudo apt-get install -y wget gnupg
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
sudo apt-get update
sudo apt-get install -y mongodb-mongosh
- name: Create mongo Docker container
id: build_mongo_docker
uses: DigiPie/[email protected]
uses: DigiPie/[email protected]
with:
image-version: latest
image_version: latest
port: 27017
- name: Test mongo connection
id: test_mongo_connection
run: "sudo mongo localhost:27017"
run: "sudo mongosh localhost:27017"
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2020 Evan Tay
Copyright (c) 2023 Evan Tay

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
19 changes: 13 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

## Inputs

### `image-version`
### `image_version`

**Optional:** The `mongo` Docker image version to use. Default: `"latest"`. Refer to the official [Dockerhub image page](https://hub.docker.com/_/mongo).

Expand All @@ -17,22 +17,29 @@
## Example usage

```yaml
name: mongo-action CI
on: [push]

jobs:
test_mongo_action:
runs-on: ubuntu-latest
name: Test mongo-action
steps:
- name: Install mongosh
run: |
sudo apt-get update
sudo apt-get install -y wget gnupg
wget -qO - https://www.mongodb.org/static/pgp/server-6.0.asc | sudo apt-key add -
echo "deb [ arch=amd64,arm64 ] https://repo.mongodb.org/apt/ubuntu jammy/mongodb-org/6.0 multiverse" | sudo tee /etc/apt/sources.list.d/mongodb-org-6.0.list
sudo apt-get update
sudo apt-get install -y mongodb-mongosh
- name: Create mongo Docker container
id: build_mongo_docker
uses: DigiPie/[email protected]
uses: DigiPie/[email protected]
with:
image-version: latest
image_version: latest
port: 27017
- name: Test mongo connection
id: test_mongo_connection
run: "sudo mongo localhost:27017"
run: "sudo mongosh localhost:27017"
```
## Example usage with NodeJS-ExpressJS
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ inputs:
required: false
default: 27017
runs:
using: "node12"
using: "node16"
main: "dist/index.js"
Loading

0 comments on commit 624aa3a

Please sign in to comment.